From ca129d76edc72bbee4bebefd103fb88014b6e4df Mon Sep 17 00:00:00 2001 From: karmac Date: Wed, 30 Jan 2019 15:51:39 +0200 Subject: [PATCH] Support RTL --- app/src/main/res/layout/activity_event.xml | 12 ++++++------ app/src/main/res/layout/event_list_section.xml | 2 +- app/src/main/res/layout/radio_button_with_color.xml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index 1cc6e0dc4..dcdc7e8db 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -32,9 +32,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/event_title" - android:layout_marginLeft="@dimen/activity_margin" + android:layout_marginStart="@dimen/activity_margin" android:layout_marginTop="@dimen/activity_margin" - android:layout_toLeftOf="@+id/event_show_on_map" + android:layout_toStartOf="@+id/event_show_on_map" android:hint="@string/location" android:inputType="textCapWords" android:maxLength="180" @@ -383,11 +383,11 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/small_margin" android:layout_marginLeft="@dimen/small_margin" - android:layout_toLeftOf="@+id/event_caldav_calendar_color" + android:layout_toStartOf="@+id/event_caldav_calendar_color" android:ellipsize="end" android:maxLines="1" android:paddingTop="@dimen/medium_margin" - android:paddingRight="@dimen/medium_margin" + android:paddingEnd="@dimen/medium_margin" android:paddingBottom="@dimen/tiny_margin" android:textSize="@dimen/day_text_size" tools:text="My calendar"/> @@ -399,7 +399,7 @@ android:layout_below="@+id/event_caldav_calendar_name" android:layout_marginStart="@dimen/small_margin" android:layout_marginLeft="@dimen/small_margin" - android:layout_toLeftOf="@+id/event_caldav_calendar_color" + android:layout_toStartOf="@+id/event_caldav_calendar_color" android:ellipsize="end" android:maxLines="1" android:paddingRight="@dimen/medium_margin" @@ -460,7 +460,7 @@ android:layout_marginStart="@dimen/small_margin" android:layout_marginLeft="@dimen/small_margin" android:layout_marginRight="@dimen/medium_margin" - android:layout_toLeftOf="@+id/event_type_color" + android:layout_toStartOf="@+id/event_type_color" android:paddingTop="@dimen/normal_margin" android:paddingBottom="@dimen/normal_margin" android:textSize="@dimen/day_text_size"/> diff --git a/app/src/main/res/layout/event_list_section.xml b/app/src/main/res/layout/event_list_section.xml index 34106cde1..460fa2667 100644 --- a/app/src/main/res/layout/event_list_section.xml +++ b/app/src/main/res/layout/event_list_section.xml @@ -8,7 +8,7 @@ android:drawablePadding="1dp" android:drawableTop="@drawable/divider_width" android:focusable="false" - android:paddingLeft="@dimen/activity_margin" + android:paddingStart="@dimen/activity_margin" android:paddingTop="@dimen/medium_margin" android:textSize="@dimen/normal_text_size" android:textStyle="bold"/> diff --git a/app/src/main/res/layout/radio_button_with_color.xml b/app/src/main/res/layout/radio_button_with_color.xml index 581daf2a9..b97e51aa5 100644 --- a/app/src/main/res/layout/radio_button_with_color.xml +++ b/app/src/main/res/layout/radio_button_with_color.xml @@ -9,8 +9,8 @@ android:id="@+id/dialog_radio_button" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginRight="@dimen/medium_margin" - android:layout_toLeftOf="@+id/dialog_radio_color" + android:layout_marginEnd="@dimen/medium_margin" + android:layout_toStartOf="@+id/dialog_radio_color" android:clickable="false" android:paddingBottom="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin"/>