diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2015-04-14 13:16:23 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-18 13:52:53 -0700 |
commit | 694be6c84ea620bec5bfa493f5ac277377ef994e (patch) | |
tree | 48c36c15cfc05ba860e5e980936471ecae4d8f5d | |
parent | 8525ff0dff18e75863d6f8f23efbf589b8b2dabf (diff) | |
download | android_packages_apps_Calendar-694be6c84ea620bec5bfa493f5ac277377ef994e.tar.gz android_packages_apps_Calendar-694be6c84ea620bec5bfa493f5ac277377ef994e.tar.bz2 android_packages_apps_Calendar-694be6c84ea620bec5bfa493f5ac277377ef994e.zip |
Calendar: add RTL support
Change-Id: I9108456ea240cb9fab16e95480d955c53e6a384b
(cherry picked from commit 4db5b7819cb635ab642837769cacd3b8e7a38dbd)
(cherry picked from commit 12d6a48e7aaa2a8702804f0b0dae28e571d67ac8)
-rw-r--r-- | AndroidManifest.xml | 3 | ||||
-rw-r--r-- | res/layout/actionbar_pulldown_menu_top_button.xml | 18 |
2 files changed, 11 insertions, 10 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ec780e73..bc778484 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -48,7 +48,8 @@ android:hardwareAccelerated="true" android:backupAgent="com.android.calendar.CalendarBackupAgent" android:requiredAccountType="*" - android:usesCleartextTraffic="false" > + android:usesCleartextTraffic="false" + android:supportsRtl="true" > <meta-data android:name="com.google.android.backup.api_key" android:value="AEdPqrEAAAAIM256oVOGnuSel5QKDpL8je_T65ZI8rFnDinssA" /> diff --git a/res/layout/actionbar_pulldown_menu_top_button.xml b/res/layout/actionbar_pulldown_menu_top_button.xml index 92f497bb..5951e796 100644 --- a/res/layout/actionbar_pulldown_menu_top_button.xml +++ b/res/layout/actionbar_pulldown_menu_top_button.xml @@ -18,8 +18,8 @@ android:layout_width="wrap_content" android:layout_height="48dip" android:gravity="center_vertical" - android:paddingRight="8dip" - android:paddingLeft="12dip"> + android:paddingEnd="8dip" + android:paddingStart="12dip"> <TextView android:id="@+id/top_button_weekday" android:layout_width="wrap_content" @@ -29,29 +29,29 @@ android:layout_marginTop="-2dip" android:layout_marginBottom="-8dip" android:layout_alignParentTop="true" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:textColor="@color/calendar_view_switch_menu_text_color" - android:gravity="left" /> + android:gravity="start" /> <TextView android:id="@+id/top_button_lunar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-2dip" android:layout_marginBottom="-8dip" - android:layout_marginLeft="8dip" - android:layout_toRightOf="@id/top_button_weekday" + android:layout_marginStart="8dip" + android:layout_toEndOf="@id/top_button_weekday" android:singleLine="true" android:textSize="12sp" android:textColor="@color/calendar_view_switch_menu_text_color" - android:gravity="left" /> + android:gravity="start" /> <TextView android:id="@+id/top_button_date" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_below="@id/top_button_weekday" android:singleLine="true" android:textSize="@dimen/action_bar_date_text_size" android:textColor="@color/calendar_view_switch_menu_text_color" - android:gravity="left" /> + android:gravity="start" /> </RelativeLayout> |