I would like to align my text from different row. Every text should start from the same space, but now if text1 is larger it is falling apart. I tried to use tablerow or tablelayout, what will be the best approach?
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_my_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Monday 17"
android:paddingVertical="4dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"/>
<TextView
android:id="@+id/tv_my_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text=" - "
android:paddingVertical="4dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"/>
<TextView
android:id="@+id/tv_my_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Tuesday 18 okt 2022"
android:paddingVertical="4dp"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"/>
</TableRow>
</TableLayout>
