summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorBrandon Maxwell <maxwelb@google.com>2015-11-19 12:54:49 -0800
committerBrandon Maxwell <maxwelb@google.com>2015-11-19 14:19:58 -0800
commitdc6e6e5fc17fade062015f744536ed27e8be1a8f (patch)
tree8f07dcef7ba1dc214e592f2162525b7711e8e7cd /InCallUI
parent471f63aa71568456b368b80d38a5e43f7051d28d (diff)
Moving elapsed time out of label and number layout
Bug: 25757839 Change-Id: I5b7fba910078dfd4e02f665f960e8de24a6124a6
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/res/layout/primary_call_info.xml37
1 files changed, 18 insertions, 19 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml
index d149a3c45..629d22047 100644
--- a/InCallUI/res/layout/primary_call_info.xml
+++ b/InCallUI/res/layout/primary_call_info.xml
@@ -161,18 +161,16 @@
android:visibility="gone" />
<!-- Label (like "Mobile" or "Work", if present) and phone number, side by side -->
- <RelativeLayout android:id="@+id/labelAndNumber"
- android:layout_width="0dp"
- android:layout_height="match_parent"
+ <LinearLayout android:id="@+id/labelAndNumber"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:layout_weight="1"
- android:orientation="horizontal"
- android:gravity="start">
+ android:orientation="horizontal">
<TextView android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_alignParentStart="true"
+ android:layout_weight="0"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/incall_call_banner_subtext_color"
android:textSize="@dimen/call_label_text_size"
@@ -183,9 +181,8 @@
<TextView android:id="@+id/phoneNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_weight="1"
android:layout_marginStart="6dp"
- android:layout_alignParentTop="true"
- android:layout_toEndOf="@id/label"
android:textAlignment="viewStart"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/incall_call_banner_subtext_color"
@@ -193,17 +190,19 @@
android:singleLine="false"
android:visibility="gone" />
- <TextView android:id="@+id/elapsedTime"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_alignParentEnd="true"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:textColor="@color/incall_call_banner_subtext_color"
- android:textSize="@dimen/call_label_text_size"
- android:visibility="gone" />
+ </LinearLayout>
- </RelativeLayout>
+ <!-- Elapsed time indication for a call in progress. -->
+ <TextView android:id="@+id/elapsedTime"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:textAlignment="viewEnd"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/incall_call_banner_subtext_color"
+ android:textSize="@dimen/call_label_text_size"
+ android:singleLine="true"
+ android:visibility="gone" />
</LinearLayout>