diff options
author | Yorke Lee <yorkelee@google.com> | 2013-08-30 17:01:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-30 17:01:20 +0000 |
commit | 1a3be9f243cc91fb1d375209b70963e8a384e9d3 (patch) | |
tree | 748c51d4b0bd066ddffe9efb82714f050022510f | |
parent | 9240895e9df2fcae8f0baea707eb4d24c6e50997 (diff) | |
parent | 48216e72c485c089e8f9bd35fbb19d2ad6291388 (diff) | |
download | packages_apps_InCallUI-1a3be9f243cc91fb1d375209b70963e8a384e9d3.tar.gz packages_apps_InCallUI-1a3be9f243cc91fb1d375209b70963e8a384e9d3.tar.bz2 packages_apps_InCallUI-1a3be9f243cc91fb1d375209b70963e8a384e9d3.zip |
Merge "Fix secondary call card alignment in RTL" into klp-dev
-rw-r--r-- | res/layout/secondary_call_info.xml | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/res/layout/secondary_call_info.xml b/res/layout/secondary_call_info.xml index 369763ab..97bc0bf9 100644 --- a/res/layout/secondary_call_info.xml +++ b/res/layout/secondary_call_info.xml @@ -36,20 +36,27 @@ android:layout_height="match_parent" android:background="@drawable/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" @@ -57,6 +64,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" |