Я разрабатываю приложение для Android. И у меня много TextViews в одной строке. Но когда TextView стал больше, он переходит к новой строке, но не выравнивается влево.Android - выровнять текстПросмотр вопроса
Это то, что мне нужно:
Это то, что я сейчас:
Мой код:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp">
<ImageView
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:src="@drawable/arrow_right" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/due_after"
android:textColor="@color/black" />
<TextView
android:id="@+id/tv_due_days"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="3dp"
android:layout_marginLeft="3dp"
android:layout_marginRight="3dp"
android:layout_marginStart="3dp"
android:text=" 500 days"
android:textColor="@color/red" />
<TextView
android:id="@+id/tv_redemption"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/from_earn_date"
android:textColor="@color/black" />
</LinearLayout>