summaryrefslogtreecommitdiffstats
path: root/res/layout/primary_call_info.xml
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2013-08-22 18:03:39 -0700
committerSantos Cordon <santoscordon@google.com>2013-08-23 11:59:34 -0700
commit3d9e39bef65a67b9b04a2584b12f8b655fcc2e7c (patch)
treefe7127083ba3f84cf14b5575f5b6a7e9cbfbf316 /res/layout/primary_call_info.xml
parent978c86163edab1f389bcc8e627eedc98d785f0f2 (diff)
downloadpackages_apps_InCallUI-3d9e39bef65a67b9b04a2584b12f8b655fcc2e7c.tar.gz
packages_apps_InCallUI-3d9e39bef65a67b9b04a2584b12f8b655fcc2e7c.tar.bz2
packages_apps_InCallUI-3d9e39bef65a67b9b04a2584b12f8b655fcc2e7c.zip
Show gateway UI when dialing via a gateway
Gateway information is not available in the Call object. Inside CallCardPresenter, we use this to show the user dialing information when dialing out through a gateway. This includes a "Calling via..." notice above the call state label and the gateway number. bug: 10393622 Change-Id: Iff1247cd592b0730bb7cfc6d16bd8f60b47f3737
Diffstat (limited to 'res/layout/primary_call_info.xml')
-rw-r--r--res/layout/primary_call_info.xml77
1 files changed, 60 insertions, 17 deletions
diff --git a/res/layout/primary_call_info.xml b/res/layout/primary_call_info.xml
index 251ded30..681519b7 100644
--- a/res/layout/primary_call_info.xml
+++ b/res/layout/primary_call_info.xml
@@ -110,24 +110,67 @@
</GridLayout>
<!-- End of call_banner -->
+ <LinearLayout android:id="@+id/supplementary_info_container"
+ style="@style/PrimaryCallInfoSupplementaryInfoContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|right"
+ android:orientation="vertical"
+ android:background="@color/incall_secondary_info_background"
+ android:animateLayoutChanges="true">
+
+ <!-- Shown when a gateway provider is used during any outgoing call. -->
+ <LinearLayout android:id="@+id/providerInfo"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="@dimen/provider_info_top_bottom_padding"
+ android:paddingBottom="@dimen/provider_info_top_bottom_padding"
+ android:paddingStart="@dimen/call_banner_side_padding"
+ android:paddingEnd="@dimen/call_banner_side_padding"
+ android:gravity="end"
+ android:orientation="horizontal"
+ android:background="@android:color/transparent"
+ android:visibility="gone">
+ <TextView android:id="@+id/providerLabel"
+ android:layout_width="0px"
+ android:layout_height="wrap_content"
+ android:layout_weight="6"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textAllCaps="true"
+ android:textColor="@color/incall_call_banner_text_color"
+ android:singleLine="true"
+ android:ellipsize="marquee" />
+ <TextView android:id="@+id/providerAddress"
+ android:layout_width="0px"
+ android:layout_height="wrap_content"
+ android:layout_weight="4"
+ android:gravity="end"
+ android:paddingStart="8dp"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textAllCaps="true"
+ android:textColor="@color/incall_call_banner_text_color"
+ android:singleLine="true"
+ android:ellipsize="middle" />
+ </LinearLayout>
- <!-- The "call state label": In some states, this shows a special
- indication like "Dialing" or "Incoming call" or "Call ended".
- It's unused for the normal case of an active ongoing call. -->
- <TextView android:id="@+id/callStateLabel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="@dimen/provider_info_top_bottom_padding"
- android:paddingBottom="@dimen/provider_info_top_bottom_padding"
- android:paddingStart="@dimen/call_banner_side_padding"
- android:paddingEnd="@dimen/call_banner_side_padding"
- android:gravity="end"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:textColor="@color/incall_call_banner_text_color"
- android:textAllCaps="true"
- android:background="@color/incall_secondary_info_background"
- android:singleLine="true"
- android:ellipsize="end"/>
+ <!-- The "call state label": In some states, this shows a special
+ indication like "Dialing" or "Incoming call" or "Call ended".
+ It's unused for the normal case of an active ongoing call. -->
+ <TextView android:id="@+id/callStateLabel"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="@dimen/provider_info_top_bottom_padding"
+ android:paddingBottom="@dimen/provider_info_top_bottom_padding"
+ android:paddingStart="@dimen/call_banner_side_padding"
+ android:paddingEnd="@dimen/call_banner_side_padding"
+ android:gravity="end"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="@color/incall_call_banner_text_color"
+ android:textAllCaps="true"
+ android:background="@color/incall_secondary_info_background"
+ android:singleLine="true"
+ android:ellipsize="end"/>
+ </LinearLayout>
</LinearLayout>