У меня есть следующий xml, и я пытаюсь центрировать TableRow.
Я попытался strech = "*", но он не работает должным образом, потому что ширина обеих строк изменяется, когда я изменяю длину имени.
Есть идеи?
Спасибо
![enter image description here](https://i.stack.imgur.com/0OJtV.png)
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableLayout
android:id="@+id/tableLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:shrinkColumns="1"
app:visibleGone="@{showData}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toEndOf="@+id/onShow"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:fontFamily="sans-serif"
android:padding="4dp"
android:text="Details about:"
android:textAlignment="textEnd"
android:textSize="@dimen/employee_text_size_header"
android:textStyle="bold"
android:typeface="normal" />
<TextView
android:id="@+id/header_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:fontFamily="sans-serif"
android:maxLines="1"
android:padding="4dp"
android:text='Yasir Carlos'
android:textSize="@dimen/employee_text_size_header"
android:typeface="normal" />
</TableRow>
</TableLayout>