summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-30 09:03:20 -0700
committerYorke Lee <yorkelee@google.com>2013-08-30 09:03:20 -0700
commit48216e72c485c089e8f9bd35fbb19d2ad6291388 (patch)
tree89f460b340160cc95dc20ff16d7cd23e5a451237
parentef4e344e8b35ebf5e35ffecf65e375cfc3225077 (diff)
downloadpackages_apps_InCallUI-48216e72c485c089e8f9bd35fbb19d2ad6291388.tar.gz
packages_apps_InCallUI-48216e72c485c089e8f9bd35fbb19d2ad6291388.tar.bz2
packages_apps_InCallUI-48216e72c485c089e8f9bd35fbb19d2ad6291388.zip
Fix secondary call card alignment in RTL
Bug: 10534849 Change-Id: I2c523525a35f121e76842e6d7db209b18deec946
-rw-r--r--res/layout/secondary_call_info.xml24
1 files changed, 16 insertions, 8 deletions
diff --git a/res/layout/secondary_call_info.xml b/res/layout/secondary_call_info.xml
index 546278f9..4354be47 100644
--- a/res/layout/secondary_call_info.xml
+++ b/res/layout/secondary_call_info.xml
@@ -33,20 +33,27 @@
<!-- TODO(klp): Add clickable dim effect -->
- <!-- Name (or the phone number, if we don't have a name to display). -->
- <TextView android:id="@+id/secondaryCallName"
- style="@style/SecondaryCallInfoSecondaryCallName"
+ <!-- Parent FrameLayout is used to size the background correctly, while the child TextView
+ just wraps its content and is aligned with layout_gravity start so that it is aligned
+ to the correct side in RTL mode regardless of whether the text is Arabic or not -->
+ <FrameLayout
android:layout_width="match_parent"
android:layout_height="@dimen/call_banner_height"
- android:gravity="top|start"
android:paddingStart="@dimen/call_banner_side_padding"
android:paddingEnd="@dimen/call_banner_side_padding"
android:paddingTop="@dimen/call_banner_top_bottom_padding"
android:paddingBottom="@dimen/call_banner_top_bottom_padding"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textColor="@color/incall_call_banner_text_color"
- android:singleLine="true"
- android:background="@color/incall_call_banner_background" />
+ android:background="@color/incall_call_banner_background">
+ <!-- Name (or the phone number, if we don't have a name to display). -->
+ <TextView android:id="@+id/secondaryCallName"
+ style="@style/SecondaryCallInfoSecondaryCallName"
+ android:layout_gravity="top|start"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/incall_call_banner_text_color"
+ android:singleLine="true"/>
+ </FrameLayout>
<!-- Call status of the background call, usually the string "On hold". -->
<TextView android:id="@+id/secondaryCallStatus"
@@ -54,6 +61,7 @@
android:layout_width="wrap_content"
android:layout_height="@dimen/call_banner_height"
android:gravity="top|end"
+ android:layout_gravity="end"
android:paddingStart="@dimen/call_banner_side_padding"
android:paddingEnd="@dimen/call_banner_side_padding"
android:paddingTop="@dimen/call_banner_top_bottom_padding"