From 6392e88dc72c66b87a4ec3a5678445f4ba4dc77b Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Sat, 21 Nov 2020 19:08:44 +0100 Subject: [PATCH] Enable RTL. --- src/main/AndroidManifest.xml | 99 ++++++------ src/main/res/layout-land/track_controller.xml | 4 +- src/main/res/layout-land/track_list.xml | 8 +- .../res/layout/aggregated_stats_list_item.xml | 46 +++--- src/main/res/layout/export_activity.xml | 10 +- src/main/res/layout/import_activity.xml | 6 +- src/main/res/layout/interval_list_view.xml | 6 +- src/main/res/layout/list_item.xml | 11 +- src/main/res/layout/marker_edit.xml | 4 +- .../res/layout/preference_activity_type.xml | 4 +- src/main/res/layout/statistics_recorded.xml | 96 ++++++------ src/main/res/layout/statistics_recording.xml | 144 +++++++++--------- src/main/res/layout/track_edit.xml | 4 +- src/main/res/layout/track_list.xml | 2 +- 14 files changed, 229 insertions(+), 215 deletions(-) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 5c39189a7..c8d84eea9 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -50,10 +50,11 @@ limitations under the License. @@ -71,14 +72,14 @@ limitations under the License. - - - + + + - - - + + + + - - - - - + + + + + + @@ -110,12 +113,14 @@ limitations under the License. android:priority="50"> + - - - - + + + + + @@ -129,9 +134,9 @@ limitations under the License. - - - + + + + - - - - - + + + + + + @@ -163,12 +170,14 @@ limitations under the License. android:priority="50"> + - - - - + + + + + @@ -182,9 +191,9 @@ limitations under the License. - - - + + + + - - - - - + + + + + + @@ -216,12 +227,14 @@ limitations under the License. android:priority="50"> + - - - - + + + + + @@ -237,7 +250,7 @@ limitations under the License. - + @@ -258,8 +271,8 @@ limitations under the License. + android:launchMode="singleTop" + android:theme="@style/SplashTheme"> diff --git a/src/main/res/layout-land/track_controller.xml b/src/main/res/layout-land/track_controller.xml index 3a3f0e9f0..74f5ec79b 100644 --- a/src/main/res/layout-land/track_controller.xml +++ b/src/main/res/layout-land/track_controller.xml @@ -21,8 +21,8 @@ limitations under the License. android:layout_height="match_parent" android:background="@drawable/track_controller_background" android:orientation="vertical" - android:paddingLeft="8dp" - android:paddingRight="8dp"> + android:paddingStart="8dp" + android:paddingEnd="8dp"> + android:paddingStart="12dp" + android:paddingEnd="16dp"> @@ -45,10 +45,10 @@ android:layout_marginTop="0dp" android:layout_marginBottom="0dp" app:layout_constraintBottom_toBottomOf="@+id/aggregated_stats_sport_icon" - app:layout_constraintLeft_toRightOf="@+id/aggregated_stats_sport_icon" + app:layout_constraintStart_toEndOf="@+id/aggregated_stats_sport_icon" app:layout_constraintTop_toTopOf="@+id/aggregated_stats_sport_icon" tools:text="@string/activity_type_cycling" - android:layout_marginLeft="16dp" /> + android:layout_marginStart="16dp" /> + android:layout_marginStart="4dp" /> @@ -94,8 +94,8 @@ style="@style/StatsSmallValue" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintTop_toBottomOf="@id/aggregated_stats_distance" - app:layout_constraintLeft_toRightOf="@id/guideline1" - app:layout_constraintRight_toLeftOf="@+id/aggregated_stats_avg_rate_unit" + app:layout_constraintStart_toEndOf="@id/guideline1" + app:layout_constraintEnd_toStartOf="@+id/aggregated_stats_avg_rate_unit" android:layout_marginTop="24dp" tools:text="30" /> @@ -103,8 +103,8 @@ android:id="@+id/aggregated_stats_avg_rate_unit" style="@style/StatsUnit" app:layout_constraintBottom_toBottomOf="@+id/aggregated_stats_avg_rate" - app:layout_constraintLeft_toRightOf="@+id/aggregated_stats_avg_rate" - app:layout_constraintRight_toRightOf="@id/guideline2" + app:layout_constraintStart_toEndOf="@+id/aggregated_stats_avg_rate" + app:layout_constraintEnd_toEndOf="@id/guideline2" tools:text="km/h" /> @@ -122,8 +122,8 @@ style="@style/StatsSmallValue" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintTop_toBottomOf="@id/aggregated_stats_time" - app:layout_constraintLeft_toRightOf="@id/guideline2" - app:layout_constraintRight_toLeftOf="@+id/aggregated_stats_max_rate_unit" + app:layout_constraintStart_toEndOf="@id/guideline2" + app:layout_constraintEnd_toStartOf="@+id/aggregated_stats_max_rate_unit" android:layout_marginTop="24dp" tools:text="70" /> @@ -131,8 +131,8 @@ android:id="@+id/aggregated_stats_max_rate_unit" style="@style/StatsUnit" app:layout_constraintBottom_toBottomOf="@+id/aggregated_stats_max_rate" - app:layout_constraintLeft_toRightOf="@+id/aggregated_stats_max_rate" - app:layout_constraintRight_toLeftOf="@id/guideline3" + app:layout_constraintStart_toEndOf="@+id/aggregated_stats_max_rate" + app:layout_constraintEnd_toStartOf="@id/guideline3" tools:text="km/h" /> \ No newline at end of file diff --git a/src/main/res/layout/export_activity.xml b/src/main/res/layout/export_activity.xml index 9043b21a6..2a1029017 100644 --- a/src/main/res/layout/export_activity.xml +++ b/src/main/res/layout/export_activity.xml @@ -62,9 +62,9 @@ style="@style/ProgressBar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="24dp" + android:layout_marginStart="24dp" android:layout_marginTop="8dp" - android:layout_marginRight="24dp" + android:layout_marginEnd="24dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/export_progress_done" @@ -113,8 +113,8 @@ android:id="@+id/export_progress_apply_to_all" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="24dp" - android:layout_marginRight="24dp" + android:layout_marginStart="24dp" + android:layout_marginEnd="24dp" android:layout_marginBottom="24dp" android:checked="false" android:text="@string/export_all_do_it_for_all" @@ -144,7 +144,7 @@