summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-09 12:29:28 -0700
committerYorke Lee <yorkelee@google.com>2013-09-11 15:59:35 -0700
commit18e7fdd55f67e3636c161462cb54e7f5555a04de (patch)
tree7c830edacb5abe0973ac06dc6bbf4eeb2362f8f6 /res/layout
parente44b3c6a990f41d3e58406310183b16db0dab3ea (diff)
downloadandroid_packages_apps_Dialer-18e7fdd55f67e3636c161462cb54e7f5555a04de.tar.gz
android_packages_apps_Dialer-18e7fdd55f67e3636c161462cb54e7f5555a04de.tar.bz2
android_packages_apps_Dialer-18e7fdd55f67e3636c161462cb54e7f5555a04de.zip
Add no contacts view to Dialer
Bug: 10330508 Change-Id: I5f73a63118558e734cd36e681c59f4b82050a49c
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/phone_no_favorites.xml (renamed from res/layout/phone_loading_contacts.xml)28
-rw-r--r--res/layout/show_all_contacts_fragment.xml2
2 files changed, 12 insertions, 18 deletions
diff --git a/res/layout/phone_loading_contacts.xml b/res/layout/phone_no_favorites.xml
index afc3322d1..9fa5d4781 100644
--- a/res/layout/phone_loading_contacts.xml
+++ b/res/layout/phone_no_favorites.xml
@@ -14,27 +14,21 @@
limitations under the License.
-->
-<!-- "Loading" text with a spinner, which is used in PhoneFavorite screen -->
-<LinearLayout
+<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:minHeight="?android:attr/listPreferredItemHeight"
- android:orientation="horizontal"
- android:gravity="start|center_vertical">
-
- <ProgressBar
- android:indeterminate="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/progress_spinner"/>
+ android:minHeight="?android:attr/listPreferredItemHeight">
<TextView
android:id="@+id/title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/contact_list_loading"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_marginStart="4dip" />
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:text="@string/listTotalAllContactsZeroStarred"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textColor="?android:attr/textColorSecondary"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"/>
-</LinearLayout>
+</FrameLayout>
diff --git a/res/layout/show_all_contacts_fragment.xml b/res/layout/show_all_contacts_fragment.xml
index 14fe340f3..ddc99e84b 100644
--- a/res/layout/show_all_contacts_fragment.xml
+++ b/res/layout/show_all_contacts_fragment.xml
@@ -23,7 +23,7 @@
<!-- Shown only when an Account filter is set.
- paddingTop should be here to show "shade" effect correctly. -->
- <!-- TODO {klp} Remove the filter header. -->
+ <!-- TODO: Remove the filter header. -->
<include
android:id="@+id/account_filter_header_container"
layout="@layout/account_filter_header" />