java - ConstrainLayout not respecting the hierarchy -


screen shoti have layout

.................... <checkbox         android:id="@+id/cb_remember_login"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_below="@+id/textinput2"         android:text="@string/keep_login"         android:textcolor="@android:color/holo_red_dark"         android:textsize="18sp"         android:layout_margintop="14dp"         app:layout_constrainttop_tobottomof="@+id/textinput2"         app:layout_constraintbottom_totopof="@+id/btn_signin_login" />        <button         android:id="@+id/btn_signin_login"         android:layout_width="0dp"         android:layout_height="wrap_content"         android:layout_alignparentstart="true"         android:layout_below="@+id/cb_remember_login"         android:backgroundtint="@color/coloraccent"         android:minheight="75dp"         android:text="@string/signin"         android:textcolor="@android:color/background_light"         android:textsize="30sp" android:visibility="visible"         android:layout_margintop="36dp"         app:layout_constrainttop_tobottomof="@+id/cb_remember_login"         app:layout_constraintbottom_totopof="@+id/tv_forgot_login"         app:layout_constraintleft_toleftof="parent"         app:layout_constraintright_torightof="parent"/>       <include         layout="@layout/view_circle_progress"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         app:layout_constrainttop_totopof="@+id/btn_signin_login"         app:layout_constraintbottom_tobottomof="btn_signin_login"         app:layout_constraintleft_toleftof="@+id/btn_signin_login"         app:layout_constraintright_torightof="@+id/btn_signin_login" />         <textview         android:id="@+id/tv_forgot_login"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_below="@+id/btn_signin_login"         android:text="@string/forgot_pass"         android:textalignment="center"         android:textcolor="@android:color/holo_red_dark"         android:textsize="18sp"         android:layout_margintop="14dp"         app:layout_constrainttop_tobottomof="@+id/btn_signin_login"         app:layout_constraintbottom_totopof="@+id/tv_copyrights_login"         tools:layout_editor_absolutex="0dp" />  ...........][1]][1] 

here view_circle_progress.xml

<progressbar     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="wrap_content"     android:layout_height="wrap_content" android:indeterminatetint="@color/red">  </progressbar> 

you can see included layout comes after button in picture can see it's beneath button. please solution. except included layout views in chain.

go xml, click design. on upper left, corner see icon similar blueprint. click on , layout blue print. click on element want, see 4 points on sides. click on upper point , drag upper bar(menu, etc.). way attach , stay in place. if want make offset on right above properties see box representing item constraints, put distance want, , have offset.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -