diff options
author | Christine Chen <christinech@google.com> | 2013-09-27 16:38:38 -0700 |
---|---|---|
committer | Christine Chen <christinech@google.com> | 2013-09-27 17:05:48 -0700 |
commit | 6b2d72cebe947ea22cb5eec03460578429769020 (patch) | |
tree | 17987471ec31bd436064b64cc8d81e80bb66d87e /InCallUI | |
parent | e15ae4005972b4a1cd864bb4c2b57f3b70f67275 (diff) |
Changes primary call card padding
- Also changes the secondary call card padding and alignment
Bug: 10955870
Change-Id: I781e2016914d6ce8e677cc8bc88ed909db23879c
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/res/layout/primary_call_info.xml | 124 | ||||
-rw-r--r-- | InCallUI/res/layout/secondary_call_info.xml | 7 | ||||
-rw-r--r-- | InCallUI/res/values/dimens.xml | 2 |
3 files changed, 70 insertions, 63 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index f67c04aa6..0d37a737a 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -38,77 +38,81 @@ android:orientation="vertical"> <!-- "Call Banner" for primary call, the foregound or ringing call. - The "call banner" is a block of info about a single call, - including the contact name, phone number, call time counter, - and other status info. This info is shown as a "banner" - overlaid across the top of contact photo. --> - <GridLayout android:id="@+id/primary_call_banner" - style="@style/PrimaryCallInfoPrimaryCallBanner" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="@dimen/call_banner_height" - android:background="@color/incall_call_banner_background" - 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"> + The "call banner" is a block of info about a single call, + including the contact name, phone number, call time counter, + and other status info. This info is shown as a "banner" + overlaid across the top of contact photo. --> + <RelativeLayout android:id="@+id/primary_call_banner" + style="@style/PrimaryCallInfoPrimaryCallBanner" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="@dimen/call_banner_height" + 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:background="@color/incall_call_banner_background"> <!-- Name (or the phone number, if we don't have a name to display). --> <TextView android:id="@+id/name" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textColor="@color/incall_call_banner_text_color" - android:singleLine="true" - android:textAlignment="viewStart" - android:layout_column="0" - android:layout_row="0" - android:layout_columnSpan="2" - android:layout_gravity="fill"/> + android:layout_alignParentTop="true" + android:layout_alignParentStart="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingEnd="@dimen/call_banner_name_number_right_padding" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="@color/incall_call_banner_text_color" + android:singleLine="true" + android:textAlignment="viewStart"/> <!-- Label (like "Mobile" or "Work", if present) and phone number, side by side --> - <TextView android:id="@+id/phoneNumber" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="@color/incall_call_banner_text_color" - android:singleLine="true" - android:textDirection="ltr" - android:layout_column="0" - android:layout_row="1" - android:layout_gravity="fill"/> + <LinearLayout android:id="@+id/labelAndNumber" + android:layout_below="@id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingEnd="@dimen/call_banner_name_number_right_padding" + android:orientation="horizontal"> + <TextView android:id="@+id/phoneNumber" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/incall_call_banner_text_color" + android:singleLine="true" + android:textDirection="ltr" /> + <TextView android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/incall_call_banner_text_color" + android:textAllCaps="true" + android:singleLine="true" + android:layout_marginStart="6dp" /> + </LinearLayout> - <TextView android:id="@+id/label" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="@color/incall_call_banner_text_color" - android:textAllCaps="true" - android:singleLine="true" - android:paddingStart="6dp" - android:layout_column="1" - android:layout_row="1" - android:layout_gravity="fill"/> + <!-- Elapsed time indication for a call in progress. --> + <TextView android:id="@+id/elapsedTime" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + 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" + android:visibility="invisible" /> <!-- Call type indication: a special label and/or branding for certain kinds of calls (like "Internet call" for a SIP call.) --> <TextView android:id="@+id/callTypeLabel" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="@color/incall_callTypeSip" - android:maxLines="1" - android:layout_column="0" - android:layout_row="2" - android:layout_columnSpan="2" - android:ellipsize="end" - android:layout_gravity="fill"/> + android:layout_below="@id/labelAndNumber" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/incall_call_banner_text_color" + android:maxLines="1" + android:ellipsize="end" /> + + </RelativeLayout> <!-- End of call_banner --> - <!-- Elapsed time indication for a call in progress. --> - <TextView android:id="@+id/elapsedTime" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textColor="@color/incall_call_banner_text_color" - android:singleLine="true" - android:visibility="invisible" - android:layout_column="2" - android:layout_row="0" - android:layout_rowSpan="3" - android:layout_gravity="fill" - android:gravity="end|center_vertical"/> - </GridLayout> - <!-- End of call_banner --> <LinearLayout android:id="@+id/supplementary_info_container" style="@style/PrimaryCallInfoSupplementaryInfoContainer" diff --git a/InCallUI/res/layout/secondary_call_info.xml b/InCallUI/res/layout/secondary_call_info.xml index 97bc0bf98..787dc59b0 100644 --- a/InCallUI/res/layout/secondary_call_info.xml +++ b/InCallUI/res/layout/secondary_call_info.xml @@ -43,18 +43,19 @@ android:layout_width="match_parent" android:layout_height="@dimen/call_banner_height" android:paddingStart="@dimen/call_banner_side_padding" - android:paddingEnd="@dimen/call_banner_side_padding" + android:paddingEnd="@dimen/secondary_call_banner_right_padding" android:paddingTop="@dimen/call_banner_top_bottom_padding" android:paddingBottom="@dimen/call_banner_top_bottom_padding" 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_gravity="bottom|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:ellipsize="marquee" android:singleLine="true"/> </FrameLayout> @@ -63,7 +64,7 @@ style="@style/SecondaryCallInfoSecondaryCallStatus" android:layout_width="wrap_content" android:layout_height="@dimen/call_banner_height" - android:gravity="top|end" + android:gravity="bottom|end" android:layout_gravity="end" android:paddingStart="@dimen/call_banner_side_padding" android:paddingEnd="@dimen/call_banner_side_padding" diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index 1d9497170..204657bc1 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -28,6 +28,8 @@ <!-- Padding at the left and right edges of the "call banner". --> <dimen name="call_banner_side_padding">24dp</dimen> + <!-- Padding at the right edges of the secondary call banner. --> + <dimen name="secondary_call_banner_right_padding">100dp</dimen> <!-- Padding at the top and bottom edges of the "call banner". --> <dimen name="call_banner_top_bottom_padding">16dp</dimen> |