summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-10-08 12:45:34 -0700
committerNancy Chen <nancychen@google.com>2014-10-08 14:06:01 -0700
commite0fa990180ff40f0b1d48a92b5ef41ea4583ad1e (patch)
treeeca2c59e9d3757313fdf6fbd55c495b7754141ff /res/layout
parent7a2ae8807ed249ad8de4b86e6b929d8cbdb8b14b (diff)
downloadandroid_packages_apps_ContactsCommon-e0fa990180ff40f0b1d48a92b5ef41ea4583ad1e.tar.gz
android_packages_apps_ContactsCommon-e0fa990180ff40f0b1d48a92b5ef41ea4583ad1e.tar.bz2
android_packages_apps_ContactsCommon-e0fa990180ff40f0b1d48a92b5ef41ea4583ad1e.zip
Generalize select account dialog for usage anywhere in dialer (2/2)
Currently the select account dialog is specific to InCallUI, but there are other places in the dialer app that will need the user to select an account (e.g. MMI pin) so we want to reuse this dialog. + Move dialog to ContactsCommon + Add a listener to the SelectPhoneAccountDialogFragment class Bug: 17917937 Change-Id: I4756daf40a518e12ac19d97bc09e62647de422b4
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/select_account_list_item.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/res/layout/select_account_list_item.xml b/res/layout/select_account_list_item.xml
new file mode 100644
index 00000000..1999fced
--- /dev/null
+++ b/res/layout/select_account_list_item.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- Layout of a single item in the InCallUI Account Chooser Dialog. -->
+<view class="com.android.contacts.common.widget.ActivityTouchLinearLayout"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="4dp" >
+
+ <ImageView android:id="@+id/icon"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:tint="@color/dialtacts_secondary_text_color"
+ android:scaleType="center" />
+
+ <TextView android:id="@+id/text"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:gravity="start|center_vertical"
+ android:layout_marginLeft="8dp"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:layout_height="match_parent" />
+</view>