How to center the TextView after skryte else?

After ConstraintLayout clDaysLeft hidden (android:visibility="gone") you need to another TextView tvDeadlineAtTitle shifted a little lower. How can I do that?

<android.support.constraint.constraintlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/clDate" android:layout_width="parent" android:layout_height="72dp" app:layout_constraintleft_toleftof="parent" app:layout_constraintright_torightof="parent">

 <textview android:id="@+id/tvDeadlineAtTitle" android:layout_width="wrap content" android:layout_height="wrap content" android:layout_marginstart="172dp" android:layout_margintop="16dp" android:text="Planned end" android:textappearance="@style/GeneralAppearance.TextStyle.DateDescription" app:layout_constraintstart_tostartof="parent" app:layout_constrainttop_totopof="parent">

 <textview android:id="@+id/tvDeadlineAtDay" android:layout_width="wrap content" android:layout_height="wrap content" android:layout_marginstart="16dp" android:layout_margintop="12dp" android:padding="0dp" android:text="25" android:textallcaps="false" android:textappearance="@style/GeneralAppearance.TextStyleDateNumber" app:layout_constraintstart_tostartof="parent" app:layout_constrainttop_totopof="parent">

 <textview android:id="@+id/tvDeadlineAtMonth" android:layout_width="wrap content" android:layout_height="11dp" android:layout_margintop="32dp" android:text="Sep" android:textappearance="@style/GeneralAppearance.TextStyleForMonth" app:layout_constraintstart_tostartof="@+id/tvDeadlineAtDay" app:layout_constrainttop_totopof="@+id/tvDeadlineAtDay">

 <view android:id="@+id/vDeadlineAtAtLine" android:layout_width="0.5 dp" android:layout_height="0dp" android:layout_marginbottom="8dp" android:layout_marginstart="104dp" android:background="#d6edf0" app:layout_constraintbottom_tobottomof="parent" app:layout_constraintstart_tostartof="parent">

 <imageview android:id="@+id/imageView6" android:layout_width="9dp" android:layout_height="9dp" app:layout_constraintbottom_tobottomof="parent" app:layout_constraintend_toendof="@+id/ivDeadlineAtCircleInner" app:layout_constraintstart_tostartof="@+id/ivDeadlineAtCircleInner" app:layout_constrainttop_totopof="parent" app:srccompat="@drawable/ic_date_circle_outer">

 <imageview android:id="@+id/ivDeadlineAtCircleInner" android:layout_width="5dp" android:layout_height="5dp" app:layout_constraintbottom_tobottomof="@+id/imageView6" app:layout_constraintend_toendof="@+id/vDeadlineAtAtLine" app:layout_constrainthorizontal_bias="0.5" app:layout_constraintstart_tostartof="@+id/vDeadlineAtAtLine" app:layout_constrainttop_totopof="@+id/imageView6" app:srccompat="@drawable/ic_date_circle">

 <android.support.constraint.constraintlayout android:id="@+id/clDaysLeft" android:layout_width="wrap content" android:layout_height="wrap content" android:layout_margintop="2dp" app:layout_constraintstart_tostartof="@+id/tvDeadlineAtTitle" app:layout_constrainttop_tobottomof="@+id/tvDeadlineAtTitle" tools:ignore="MissingConstraints">

 <imageview android:id="@+id/ivDaysLeft" android:layout_width="10dp" android:layout_height="10dp" android:layout_marginend="6dp" android:layout_margintop="6dp" app:layout_constraintend_tostartof="@+id/tvDaysLeftDate" app:layout_constrainttop_totopof="parent" app:srccompat="@drawable/iv_deadline_left">

 <textview android:id="@+id/tvDaysLeftDate" android:layout_width="101dp" android:layout_height="20dp" android:layout_marginbottom="8dp" android:layout_marginstart="6dp" android:text="4 days left" android:textappearance="@style/GeneralAppearance.TextBold.Description.DaysLeft" app:layout_constraintbottom_tobottomof="parent" app:layout_constraintend_toendof="parent" app:layout_constraintstart_toendof="@+id/ivDaysLeft" app:layout_constrainttop_totopof="parent">
</textview></imageview></android.support.constraint.constraintlayout>

 </imageview></imageview></view></textview></textview></textview></android.support.constraint.constraintlayout>
June 10th 19 at 14:54
1 answer
June 10th 19 at 14:56
sachant vertically

Find more questions by tags Android