Interval list: RTL and localized formatting (only default strings.xml).

This commit is contained in:
Dennis Guse
2020-11-26 20:37:00 +01:00
parent 6b470c7fdc
commit a429fbe4df
5 changed files with 68 additions and 46 deletions
@@ -1,47 +1,31 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:orientation="horizontal">
<TextView
android:id="@+id/interval_item_distance"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
style="@style/TextMedium"
tools:text="1 km" />
<TextView
android:id="@+id/interval_item_distance"
style="@style/TextMedium"
android:layout_width="0dp"
android:layout_weight="1"
tools:text="1 km" />
<TextView
android:id="@+id/interval_item_rate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
style="@style/TextMedium"
tools:text="15 km/h" />
<TextView
android:id="@+id/interval_item_rate"
style="@style/TextMedium"
android:layout_width="0dp"
android:layout_weight="1"
tools:text="15 km/h" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_arrow_drop_up_24" />
<TextView
android:id="@+id/interval_item_gain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
style="@style/TextMedium"
tools:text="100 m" />
</LinearLayout>
<TextView
android:id="@+id/interval_item_gain"
style="@style/TextMedium"
android:layout_width="0dp"
android:layout_weight="1"
app:drawableStartCompat="@drawable/ic_arrow_drop_up_24"
tools:text="100 m" />
</LinearLayout>