summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2013-04-05 14:23:05 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-05 14:23:05 -0700
commit290bf7eec7f40e86e9389c97ba8a35bc19b80ce0 (patch)
treef78410ed89962533f994c2fe174ab0c36b100d08
parentf241fefaada6bca145561ccbb79d582787813895 (diff)
parent45f2171aed0a2abebd54003cb8f307aa8cf251f5 (diff)
am 45f2171a: Merge "Fix for bug #8146846 Phone App should be mirrored for RTL languages" into jb-mr2-dev
* commit '45f2171aed0a2abebd54003cb8f307aa8cf251f5': Fix for bug #8146846 Phone App should be mirrored for RTL languages
-rw-r--r--AndroidManifest.xml3
-rw-r--r--res/drawable-ldrtl-hdpi/ic_ab_dialer_holo_dark.pngbin0 -> 5665 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_call_incoming_holo_dark.pngbin0 -> 598 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_call_missed_holo_dark.pngbin0 -> 529 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_call_outgoing_holo_dark.pngbin0 -> 602 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_dial_action_call.pngbin0 -> 7134 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_disabled_holo_dark.pngbin0 -> 5688 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_holo_dark.pngbin0 -> 5759 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_sound_speakerphone_disabled_holo_dark.pngbin0 -> 6381 bytes
-rw-r--r--res/drawable-ldrtl-hdpi/ic_sound_speakerphone_holo_dark.pngbin0 -> 6370 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_ab_dialer_holo_dark.pngbin0 -> 5014 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_call_incoming_holo_dark.pngbin0 -> 399 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_call_missed_holo_dark.pngbin0 -> 351 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_call_outgoing_holo_dark.pngbin0 -> 370 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_dial_action_call.pngbin0 -> 5938 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_disabled_holo_dark.pngbin0 -> 5005 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_holo_dark.pngbin0 -> 5034 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_sound_speakerphone_disabled_holo_dark.pngbin0 -> 5408 bytes
-rw-r--r--res/drawable-ldrtl-mdpi/ic_sound_speakerphone_holo_dark.pngbin0 -> 5406 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_ab_dialer_holo_dark.pngbin0 -> 6513 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_call_incoming_holo_dark.pngbin0 -> 766 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_call_missed_holo_dark.pngbin0 -> 672 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_call_outgoing_holo_dark.pngbin0 -> 816 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_dial_action_call.pngbin0 -> 8523 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_disabled_holo_dark.pngbin0 -> 6472 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_holo_dark.pngbin0 -> 6604 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_disabled_holo_dark.pngbin0 -> 7505 bytes
-rw-r--r--res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_holo_dark.pngbin0 -> 7584 bytes
-rw-r--r--res/layout-land/dialpad_fragment.xml3
-rw-r--r--res/layout/account_filter_header_for_phone_favorite.xml8
-rw-r--r--res/layout/call_detail.xml36
-rw-r--r--res/layout/call_detail_history_header.xml2
-rw-r--r--res/layout/call_detail_history_item.xml6
-rw-r--r--res/layout/call_log_fragment.xml10
-rw-r--r--res/layout/call_log_list_item.xml30
-rw-r--r--res/layout/call_log_voicemail_status.xml8
-rw-r--r--res/layout/dialpad.xml7
-rw-r--r--res/layout/dialpad_fragment.xml5
-rw-r--r--res/layout/dialtacts_activity.xml4
-rw-r--r--res/layout/dialtacts_custom_action_bar.xml6
-rwxr-xr-xres/layout/phone_disambig_item.xml4
-rw-r--r--res/layout/phone_loading_contacts.xml4
-rw-r--r--res/layout/playback_layout.xml14
-rw-r--r--res/layout/set_primary_checkbox.xml4
-rw-r--r--src/com/android/dialer/DialtactsActivity.java3
-rw-r--r--src/com/android/dialer/PhoneCallDetailsHelper.java4
-rw-r--r--src/com/android/dialer/list/PhoneFavoriteFragment.java6
47 files changed, 89 insertions, 78 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index eb05186c3..bde0775ba 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -48,7 +48,8 @@
<application
android:label="@string/applicationLabel"
android:icon="@mipmap/ic_launcher_phone"
- android:hardwareAccelerated="true">
+ android:hardwareAccelerated="true"
+ android:supportsRtl="true">
<!-- The entrance point for Phone UI.
stateAlwaysHidden is set to suppress keyboard show up on
diff --git a/res/drawable-ldrtl-hdpi/ic_ab_dialer_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_ab_dialer_holo_dark.png
new file mode 100644
index 000000000..bc3ebc7b2
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_ab_dialer_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_call_incoming_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_call_incoming_holo_dark.png
new file mode 100644
index 000000000..3b3fb46ef
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_call_incoming_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_call_missed_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_call_missed_holo_dark.png
new file mode 100644
index 000000000..844f351ed
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_call_missed_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_call_outgoing_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_call_outgoing_holo_dark.png
new file mode 100644
index 000000000..786198661
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_call_outgoing_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_dial_action_call.png b/res/drawable-ldrtl-hdpi/ic_dial_action_call.png
new file mode 100644
index 000000000..34c78ffec
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_dial_action_call.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_disabled_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_disabled_holo_dark.png
new file mode 100644
index 000000000..90712b5f0
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_disabled_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_holo_dark.png
new file mode 100644
index 000000000..d50d5b889
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_sound_off_speakerphone_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_sound_speakerphone_disabled_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_sound_speakerphone_disabled_holo_dark.png
new file mode 100644
index 000000000..b45064136
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_sound_speakerphone_disabled_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-hdpi/ic_sound_speakerphone_holo_dark.png b/res/drawable-ldrtl-hdpi/ic_sound_speakerphone_holo_dark.png
new file mode 100644
index 000000000..ab62399fc
--- /dev/null
+++ b/res/drawable-ldrtl-hdpi/ic_sound_speakerphone_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_ab_dialer_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_ab_dialer_holo_dark.png
new file mode 100644
index 000000000..210690fe1
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_ab_dialer_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_call_incoming_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_call_incoming_holo_dark.png
new file mode 100644
index 000000000..b48e0d6f3
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_call_incoming_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_call_missed_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_call_missed_holo_dark.png
new file mode 100644
index 000000000..86bae1075
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_call_missed_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_call_outgoing_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_call_outgoing_holo_dark.png
new file mode 100644
index 000000000..1429593bf
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_call_outgoing_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_dial_action_call.png b/res/drawable-ldrtl-mdpi/ic_dial_action_call.png
new file mode 100644
index 000000000..d1f00f144
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_dial_action_call.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_disabled_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_disabled_holo_dark.png
new file mode 100644
index 000000000..9daf083a9
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_disabled_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_holo_dark.png
new file mode 100644
index 000000000..e8357c197
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_sound_off_speakerphone_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_sound_speakerphone_disabled_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_sound_speakerphone_disabled_holo_dark.png
new file mode 100644
index 000000000..8ba42f8c0
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_sound_speakerphone_disabled_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-mdpi/ic_sound_speakerphone_holo_dark.png b/res/drawable-ldrtl-mdpi/ic_sound_speakerphone_holo_dark.png
new file mode 100644
index 000000000..0b7296d06
--- /dev/null
+++ b/res/drawable-ldrtl-mdpi/ic_sound_speakerphone_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_ab_dialer_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_ab_dialer_holo_dark.png
new file mode 100644
index 000000000..5c8e1622e
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_ab_dialer_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_call_incoming_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_call_incoming_holo_dark.png
new file mode 100644
index 000000000..dfb179237
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_call_incoming_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_call_missed_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_call_missed_holo_dark.png
new file mode 100644
index 000000000..a1236ed16
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_call_missed_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_call_outgoing_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_call_outgoing_holo_dark.png
new file mode 100644
index 000000000..ec0e1d0ef
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_call_outgoing_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_dial_action_call.png b/res/drawable-ldrtl-xhdpi/ic_dial_action_call.png
new file mode 100644
index 000000000..e0d268829
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_dial_action_call.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_disabled_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_disabled_holo_dark.png
new file mode 100644
index 000000000..396c47962
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_disabled_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_holo_dark.png
new file mode 100644
index 000000000..ca080b2ba
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_sound_off_speakerphone_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_disabled_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_disabled_holo_dark.png
new file mode 100644
index 000000000..c809e8dd7
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_disabled_holo_dark.png
Binary files differ
diff --git a/res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_holo_dark.png b/res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_holo_dark.png
new file mode 100644
index 000000000..f82a81662
--- /dev/null
+++ b/res/drawable-ldrtl-xhdpi/ic_sound_speakerphone_holo_dark.png
Binary files differ
diff --git a/res/layout-land/dialpad_fragment.xml b/res/layout-land/dialpad_fragment.xml
index d1cf3a405..658a03b7b 100644
--- a/res/layout-land/dialpad_fragment.xml
+++ b/res/layout-land/dialpad_fragment.xml
@@ -17,7 +17,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/top"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="match_parent"
+ android:layoutDirection="ltr" >
<LinearLayout
android:layout_width="0dp"
diff --git a/res/layout/account_filter_header_for_phone_favorite.xml b/res/layout/account_filter_header_for_phone_favorite.xml
index d7afaac2b..b55210a10 100644
--- a/res/layout/account_filter_header_for_phone_favorite.xml
+++ b/res/layout/account_filter_header_for_phone_favorite.xml
@@ -25,20 +25,20 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="8dip"
- android:layout_marginLeft="@dimen/contact_browser_list_header_left_margin"
- android:layout_marginRight="@dimen/contact_browser_list_header_right_margin"
+ android:layout_marginStart="@dimen/contact_browser_list_header_left_margin"
+ android:layout_marginEnd="@dimen/contact_browser_list_header_right_margin"
android:background="?android:attr/selectableItemBackground"
android:visibility="gone">
<TextView
android:id="@+id/account_filter_header"
style="@style/ContactListSeparatorTextViewStyle"
- android:paddingLeft="@dimen/contact_browser_list_item_text_indent" />
+ android:paddingStart="@dimen/contact_browser_list_item_text_indent" />
<TextView
android:id="@+id/contact_list_all_empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary"
- android:paddingLeft="8dip"
+ android:paddingStart="8dip"
android:paddingTop="@dimen/contact_phone_list_empty_description_padding"
android:paddingBottom="@dimen/contact_phone_list_empty_description_padding"
android:textSize="@dimen/contact_phone_list_empty_description_size"
diff --git a/res/layout/call_detail.xml b/res/layout/call_detail.xml
index dc0417b2a..c25b4a995 100644
--- a/res/layout/call_detail.xml
+++ b/res/layout/call_detail.xml
@@ -31,7 +31,7 @@
android:id="@+id/history"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
/>
@@ -40,14 +40,14 @@
android:id="@+id/controls"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
>
<FrameLayout
android:id="@+id/voicemail_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:visibility="gone"
>
@@ -59,7 +59,7 @@
android:id="@+id/contact_background_sizer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_below="@id/voicemail_status"
ex:ratio="0.5"
ex:direction="widthToHeight"
@@ -84,7 +84,7 @@
android:layout_width="match_parent"
android:layout_height="42dip"
android:background="#7F000000"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignBottom="@id/contact_background_sizer"
/>
<ImageView
@@ -92,21 +92,21 @@
android:layout_width="wrap_content"
android:layout_height="0dip"
android:scaleType="center"
- android:layout_alignRight="@id/photo_text_bar"
+ android:layout_alignEnd="@id/photo_text_bar"
android:layout_alignBottom="@id/photo_text_bar"
android:layout_alignTop="@id/photo_text_bar"
- android:layout_marginRight="@dimen/call_log_outer_margin"
+ android:layout_marginEnd="@dimen/call_log_outer_margin"
/>
<TextView
android:id="@+id/header_text"
android:layout_width="wrap_content"
android:layout_height="0dip"
- android:layout_alignLeft="@id/photo_text_bar"
+ android:layout_alignStart="@id/photo_text_bar"
android:layout_toLeftOf="@id/main_action"
android:layout_alignTop="@id/photo_text_bar"
android:layout_alignBottom="@id/photo_text_bar"
- android:layout_marginRight="@dimen/call_log_inner_margin"
- android:layout_marginLeft="@dimen/call_detail_contact_name_margin"
+ android:layout_marginEnd="@dimen/call_log_inner_margin"
+ android:layout_marginStart="@dimen/call_detail_contact_name_margin"
android:gravity="center_vertical"
android:textColor="?attr/call_log_primary_text_color"
android:textAppearance="?android:attr/textAppearanceMedium"
@@ -116,9 +116,9 @@
android:id="@+id/main_action_push_layer"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_alignLeft="@id/contact_background_sizer"
+ android:layout_alignStart="@id/contact_background_sizer"
android:layout_alignTop="@id/contact_background_sizer"
- android:layout_alignRight="@id/contact_background_sizer"
+ android:layout_alignEnd="@id/contact_background_sizer"
android:layout_alignBottom="@id/contact_background_sizer"
android:background="?android:attr/selectableItemBackground"
/>
@@ -153,7 +153,7 @@
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1"
- android:paddingLeft="@dimen/call_log_indent_margin"
+ android:paddingStart="@dimen/call_log_indent_margin"
android:orientation="vertical"
android:gravity="center_vertical"
>
@@ -161,7 +161,7 @@
<TextView android:id="@+id/call_and_sms_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingRight="@dimen/call_log_icon_margin"
+ android:paddingEnd="@dimen/call_log_icon_margin"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?attr/call_log_primary_text_color"
android:singleLine="true"
@@ -171,7 +171,7 @@
<TextView android:id="@+id/call_and_sms_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingRight="@dimen/call_log_icon_margin"
+ android:paddingEnd="@dimen/call_log_icon_margin"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?attr/call_log_primary_text_color"
android:textAllCaps="true"
@@ -190,8 +190,8 @@
<ImageView android:id="@+id/call_and_sms_icon"
android:layout_width="@color/call_log_voicemail_highlight_color"
android:layout_height="match_parent"
- android:paddingLeft="@dimen/call_log_inner_margin"
- android:paddingRight="@dimen/call_log_outer_margin"
+ android:paddingStart="@dimen/call_log_inner_margin"
+ android:paddingEnd="@dimen/call_log_outer_margin"
android:gravity="center"
android:scaleType="centerInside"
android:focusable="true"
@@ -209,7 +209,7 @@
android:id="@+id/blank"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@android:color/black"
android:visibility="gone"
diff --git a/res/layout/call_detail_history_header.xml b/res/layout/call_detail_history_header.xml
index 866ba4181..40f943b1e 100644
--- a/res/layout/call_detail_history_header.xml
+++ b/res/layout/call_detail_history_header.xml
@@ -27,7 +27,7 @@
class="com.android.contacts.common.widget.ProportionalLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_below="@id/voicemail_status"
ex:ratio="0.5"
ex:direction="widthToHeight"
diff --git a/res/layout/call_detail_history_item.xml b/res/layout/call_detail_history_item.xml
index 01b9517b6..4858717af 100644
--- a/res/layout/call_detail_history_item.xml
+++ b/res/layout/call_detail_history_item.xml
@@ -21,8 +21,8 @@
android:minHeight="@dimen/call_log_list_item_height"
android:paddingTop="@dimen/call_log_inner_margin"
android:paddingBottom="@dimen/call_log_inner_margin"
- android:paddingLeft="@dimen/call_log_indent_margin"
- android:paddingRight="@dimen/call_log_outer_margin"
+ android:paddingStart="@dimen/call_log_indent_margin"
+ android:paddingEnd="@dimen/call_log_outer_margin"
android:orientation="vertical"
>
<LinearLayout
@@ -41,7 +41,7 @@
android:id="@+id/call_type_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="@dimen/call_log_icon_margin"
+ android:layout_marginStart="@dimen/call_log_icon_margin"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/secondary_text_color"
/>
diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml
index e86ca81e3..041ca7bb4 100644
--- a/res/layout/call_log_fragment.xml
+++ b/res/layout/call_log_fragment.xml
@@ -40,11 +40,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/ContactListSeparatorTextViewStyle"
- android:layout_marginLeft="@dimen/call_log_outer_margin"
- android:layout_marginRight="@dimen/call_log_outer_margin"
+ android:layout_marginStart="@dimen/call_log_outer_margin"
+ android:layout_marginEnd="@dimen/call_log_outer_margin"
android:paddingTop="@dimen/call_log_inner_margin"
android:paddingBottom="@dimen/call_log_inner_margin"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:visibility="gone"
/>
@@ -52,8 +52,8 @@
android:id="@+id/call_log_divider"
android:layout_width="match_parent"
android:layout_height="1px"
- android:layout_marginLeft="@dimen/call_log_outer_margin"
- android:layout_marginRight="@dimen/call_log_outer_margin"
+ android:layout_marginStart="@dimen/call_log_outer_margin"
+ android:layout_marginEnd="@dimen/call_log_outer_margin"
android:layout_gravity="bottom"
android:background="#55ffffff"
/>
diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml
index 8564c0d37..54f4fff63 100644
--- a/res/layout/call_log_list_item.xml
+++ b/res/layout/call_log_list_item.xml
@@ -37,8 +37,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_marginLeft="@dimen/call_log_outer_margin"
- android:layout_marginRight="@dimen/call_log_outer_margin"
+ android:layout_marginStart="@dimen/call_log_outer_margin"
+ android:layout_marginEnd="@dimen/call_log_outer_margin"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"
@@ -51,7 +51,7 @@
android:layout_width="@dimen/call_log_list_contact_photo_size"
android:layout_height="@dimen/call_log_list_contact_photo_size"
android:nextFocusRight="@id/primary_action_view"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:focusable="true"
/>
@@ -63,13 +63,13 @@
android:paddingBottom="@dimen/call_log_inner_margin"
android:orientation="vertical"
android:gravity="center_vertical"
- android:layout_marginLeft="@dimen/call_log_inner_margin"
+ android:layout_marginStart="@dimen/call_log_inner_margin"
>
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/call_log_icon_margin"
+ android:layout_marginEnd="@dimen/call_log_icon_margin"
android:textColor="?attr/call_log_primary_text_color"
android:textSize="18sp"
android:singleLine="true"
@@ -83,7 +83,7 @@
android:id="@+id/number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/call_log_icon_margin"
+ android:layout_marginEnd="@dimen/call_log_icon_margin"
android:textColor="?attr/call_log_secondary_text_color"
android:textSize="14sp"
android:singleLine="true"
@@ -93,7 +93,7 @@
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/call_log_icon_margin"
+ android:layout_marginEnd="@dimen/call_log_icon_margin"
android:textColor="?attr/call_log_secondary_text_color"
android:textStyle="bold"
android:textSize="14sp"
@@ -112,14 +112,14 @@
android:id="@+id/call_type_icons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/call_log_icon_margin"
+ android:layout_marginEnd="@dimen/call_log_icon_margin"
android:layout_gravity="center_vertical"
/>
<TextView
android:id="@+id/call_count_and_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/call_log_icon_margin"
+ android:layout_marginEnd="@dimen/call_log_icon_margin"
android:layout_gravity="center_vertical"
android:textColor="?attr/call_log_secondary_text_color"
android:textSize="14sp"
@@ -138,10 +138,10 @@
android:id="@+id/secondary_action_icon"
android:layout_width="@dimen/call_log_call_action_width"
android:layout_height="match_parent"
- android:paddingLeft="@dimen/call_log_inner_margin"
+ android:paddingStart="@dimen/call_log_inner_margin"
android:paddingTop="@dimen/call_log_inner_margin"
android:paddingBottom="@dimen/call_log_inner_margin"
- android:paddingRight="@dimen/call_log_inner_margin"
+ android:paddingEnd="@dimen/call_log_inner_margin"
android:scaleType="center"
android:background="?android:attr/selectableItemBackground"
android:nextFocusLeft="@id/primary_action_view"
@@ -151,8 +151,8 @@
<TextView
android:id="@+id/call_log_header"
style="@style/ContactListSeparatorTextViewStyle"
- android:layout_marginLeft="@dimen/call_log_outer_margin"
- android:layout_marginRight="@dimen/call_log_outer_margin"
+ android:layout_marginStart="@dimen/call_log_outer_margin"
+ android:layout_marginEnd="@dimen/call_log_outer_margin"
android:paddingTop="@dimen/call_log_inner_margin"
android:paddingBottom="@dimen/call_log_inner_margin" />
@@ -160,8 +160,8 @@
android:id="@+id/call_log_divider"
android:layout_width="match_parent"
android:layout_height="1px"
- android:layout_marginLeft="@dimen/call_log_outer_margin"
- android:layout_marginRight="@dimen/call_log_outer_margin"
+ android:layout_marginStart="@dimen/call_log_outer_margin"
+ android:layout_marginEnd="@dimen/call_log_outer_margin"
android:background="#55ffffff"
/>
</view>
diff --git a/res/layout/call_log_voicemail_status.xml b/res/layout/call_log_voicemail_status.xml
index 191c821f4..be808e400 100644
--- a/res/layout/call_log_voicemail_status.xml
+++ b/res/layout/call_log_voicemail_status.xml
@@ -25,8 +25,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
- android:paddingLeft="@dimen/call_log_outer_margin"
- android:paddingRight="@dimen/call_log_inner_margin"
+ android:paddingStart="@dimen/call_log_outer_margin"
+ android:paddingEnd="@dimen/call_log_inner_margin"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?attr/call_log_voicemail_status_text_color"
/>
@@ -35,8 +35,8 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
- android:paddingLeft="@dimen/call_log_inner_margin"
- android:paddingRight="@dimen/call_log_outer_margin"
+ android:paddingStart="@dimen/call_log_inner_margin"
+ android:paddingEnd="@dimen/call_log_outer_margin"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?attr/call_log_voicemail_status_action_text_color"
android:background="?android:attr/selectableItemBackground"
diff --git a/res/layout/dialpad.xml b/res/layout/dialpad.xml
index 3ccb42dbf..f9a078543 100644
--- a/res/layout/dialpad.xml
+++ b/res/layout/dialpad.xml
@@ -23,10 +23,11 @@
android:layout_weight="@integer/dialpad_layout_weight_dialpad"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/dialpad_vertical_margin"
- android:paddingLeft="5dip"
- android:paddingRight="5dip"
+ android:paddingStart="5dip"
+ android:paddingEnd="5dip"
android:paddingBottom="10dip"
- android:background="@drawable/dialpad_background">
+ android:background="@drawable/dialpad_background"
+ android:layoutDirection="ltr" >
<TableRow
android:layout_height="0px"
diff --git a/res/layout/dialpad_fragment.xml b/res/layout/dialpad_fragment.xml
index 27ba2da46..13d91bd27 100644
--- a/res/layout/dialpad_fragment.xml
+++ b/res/layout/dialpad_fragment.xml
@@ -19,8 +19,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:paddingLeft="@dimen/dialpad_horizontal_margin"
- android:paddingRight="@dimen/dialpad_horizontal_margin">
+ android:paddingStart="@dimen/dialpad_horizontal_margin"
+ android:paddingEnd="@dimen/dialpad_horizontal_margin"
+ android:layoutDirection="ltr" >
<!-- Text field and possibly soft menu button above the keypad where
the digits are displayed. -->
diff --git a/res/layout/dialtacts_activity.xml b/res/layout/dialtacts_activity.xml
index 35fa00f08..079ce37d1 100644
--- a/res/layout/dialtacts_activity.xml
+++ b/res/layout/dialtacts_activity.xml
@@ -29,7 +29,7 @@
android:id="@+id/searchButton"
android:layout_width="wrap_content"
android:layout_height="?android:attr/actionBarSize"
- android:layout_gravity="bottom|left"
+ android:layout_gravity="bottom|start"
android:state_enabled="false"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/description_search_button"
@@ -39,7 +39,7 @@
android:id="@+id/overflow_menu"
android:layout_width="wrap_content"
android:layout_height="?android:attr/actionBarSize"
- android:layout_gravity="bottom|right"
+ android:layout_gravity="bottom|end"
android:src="@drawable/ic_menu_overflow"
android:contentDescription="@string/action_menu_overflow_description"
android:nextFocusLeft="@id/digits"
diff --git a/res/layout/dialtacts_custom_action_bar.xml b/res/layout/dialtacts_custom_action_bar.xml
index 26e478574..c62e22596 100644
--- a/res/layout/dialtacts_custom_action_bar.xml
+++ b/res/layout/dialtacts_custom_action_bar.xml
@@ -32,10 +32,10 @@
<ImageButton
android:id="@+id/search_option"
android:layout_width="wrap_content"
- android:paddingLeft="4dip"
- android:paddingRight="4dip"
+ android:paddingStart="4dip"
+ android:paddingEnd="4dip"
android:layout_height="match_parent"
- android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
android:contentDescription="@string/action_menu_overflow_description"
android:importantForAccessibility="yes"
android:src="@drawable/ic_menu_overflow"
diff --git a/res/layout/phone_disambig_item.xml b/res/layout/phone_disambig_item.xml
index a31d08d32..02d596b52 100755
--- a/res/layout/phone_disambig_item.xml
+++ b/res/layout/phone_disambig_item.xml
@@ -18,8 +18,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:paddingLeft="30dip"
- android:paddingRight="30dip"
+ android:paddingStart="30dip"
+ android:paddingEnd="30dip"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical">
diff --git a/res/layout/phone_loading_contacts.xml b/res/layout/phone_loading_contacts.xml
index f0d33288e..afc3322d1 100644
--- a/res/layout/phone_loading_contacts.xml
+++ b/res/layout/phone_loading_contacts.xml
@@ -21,7 +21,7 @@
android:layout_height="match_parent"
android:minHeight="?android:attr/listPreferredItemHeight"
android:orientation="horizontal"
- android:gravity="left|center_vertical">
+ android:gravity="start|center_vertical">
<ProgressBar
android:indeterminate="true"
@@ -35,6 +35,6 @@
android:layout_height="wrap_content"
android:text="@string/contact_list_loading"
android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_marginLeft="4dip" />
+ android:layout_marginStart="4dip" />
</LinearLayout>
diff --git a/res/layout/playback_layout.xml b/res/layout/playback_layout.xml
index 2dfcb4da4..b72ddcad1 100644
--- a/res/layout/playback_layout.xml
+++ b/res/layout/playback_layout.xml
@@ -31,7 +31,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="58dip"
- android:layout_marginRight="@dimen/call_detail_button_spacing"
+ android:layout_marginEnd="@dimen/call_detail_button_spacing"
android:background="@drawable/dialpad_background"
android:layout_weight="1"
>
@@ -79,12 +79,12 @@
android:thumb="@drawable/seek_bar_thumb"
android:thumbOffset="8dip"
android:progress="0"
- android:paddingLeft="8dip"
- android:paddingRight="8dip"
+ android:paddingStart="8dip"
+ android:paddingEnd="8dip"
android:paddingTop="30dip"
android:paddingBottom="20dip"
- android:layout_marginRight="64dip"
- android:layout_marginLeft="64dip"
+ android:layout_marginEnd="64dip"
+ android:layout_marginStart="64dip"
android:max="0"
android:layout_centerVertical="true"
/>
@@ -115,7 +115,7 @@
android:background="?android:attr/selectableItemBackground"
android:paddingBottom="19dip"
android:paddingTop="29dip"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_centerVertical="true"
/>
<ImageButton
@@ -126,7 +126,7 @@
android:background="?android:attr/selectableItemBackground"
android:paddingBottom="19dip"
android:paddingTop="29dip"
- android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
/>
</RelativeLayout>
diff --git a/res/layout/set_primary_checkbox.xml b/res/layout/set_primary_checkbox.xml
index 8f28ec791..b997327ed 100644
--- a/res/layout/set_primary_checkbox.xml
+++ b/res/layout/set_primary_checkbox.xml
@@ -18,8 +18,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingLeft="14dip"
- android:paddingRight="15dip"
+ android:paddingStart="14dip"
+ android:paddingEnd="15dip"
android:orientation="vertical">
<CheckBox
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 2557ebc3e..32339d2cf 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -680,7 +680,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mSearchFragment.setOnPhoneNumberPickerActionListener(mPhoneNumberPickerActionListener);
mSearchFragment.setQuickContactEnabled(true);
mSearchFragment.setDarkTheme(true);
- mSearchFragment.setPhotoPosition(ContactListItemView.PhotoPosition.LEFT);
+ mSearchFragment.setPhotoPosition(ContactListItemView.getDefaultPhotoPosition(
+ true /* opposite */));
mSearchFragment.setUseCallableUri(true);
if (mContactListFilterController != null
&& mContactListFilterController.getFilter() != null) {
diff --git a/src/com/android/dialer/PhoneCallDetailsHelper.java b/src/com/android/dialer/PhoneCallDetailsHelper.java
index f8ca769fc..51b110910 100644
--- a/src/com/android/dialer/PhoneCallDetailsHelper.java
+++ b/src/com/android/dialer/PhoneCallDetailsHelper.java
@@ -115,10 +115,14 @@ public class PhoneCallDetailsHelper {
numberText = details.geocode;
}
labelText = null;
+ // We have a real phone number as "nameView" so make it always LTR
+ views.nameView.setTextDirection(View.TEXT_DIRECTION_LTR);
} else {
nameText = details.name;
numberText = displayNumber;
labelText = numberFormattedLabel;
+ // We have a real phone number as "numberView" so make it always LTR
+ views.numberView.setTextDirection(View.TEXT_DIRECTION_LTR);
}
views.nameView.setText(nameText);
diff --git a/src/com/android/dialer/list/PhoneFavoriteFragment.java b/src/com/android/dialer/list/PhoneFavoriteFragment.java
index 93f38bb75..97481bc35 100644
--- a/src/com/android/dialer/list/PhoneFavoriteFragment.java
+++ b/src/com/android/dialer/list/PhoneFavoriteFragment.java
@@ -301,8 +301,10 @@ public class PhoneFavoriteFragment extends Fragment implements OnItemClickListen
mAllContactsAdapter.setSectionHeaderDisplayEnabled(true);
// Disable pinned header. It doesn't work with this fragment.
mAllContactsAdapter.setPinnedPartitionHeadersEnabled(false);
- // Put photos on left for consistency with "frequent" contacts section.
- mAllContactsAdapter.setPhotoPosition(ContactListItemView.PhotoPosition.LEFT);
+ // Put photos on START (LEFT in LTR layout direction and RIGHT in RTL layout direction)
+ // for consistency with "frequent" contacts section.
+ mAllContactsAdapter.setPhotoPosition(ContactListItemView.getDefaultPhotoPosition(
+ true /* opposite */ ));
// Use Callable.CONTENT_URI which will include not only phone numbers but also SIP
// addresses.