summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorIsaac Katzenelson <isaack@android.com>2011-08-18 18:29:25 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-18 18:29:25 -0700
commitf70053496b23f7e2163abc8c56279de36b826584 (patch)
tree70a386f64c7f775965ae352261553e08337afdd4 /res
parent2c1ba625efd310747bed10a180716ca82e09ef4f (diff)
parenta1bbf6139bb1e0d30078fe6c99effaf45f7416ef (diff)
downloadpackages_apps_Contacts-f70053496b23f7e2163abc8c56279de36b826584.tar.gz
packages_apps_Contacts-f70053496b23f7e2163abc8c56279de36b826584.tar.bz2
packages_apps_Contacts-f70053496b23f7e2163abc8c56279de36b826584.zip
Merge "Fix empty state layouts"
Diffstat (limited to 'res')
-rw-r--r--res/layout/contact_tile_list.xml3
-rw-r--r--res/layout/contacts_unavailable_fragment.xml113
-rw-r--r--res/layout/group_browse_list_fragment.xml13
-rw-r--r--res/values/dimens.xml6
4 files changed, 72 insertions, 63 deletions
diff --git a/res/layout/contact_tile_list.xml b/res/layout/contact_tile_list.xml
index 2047b1365..1df137793 100644
--- a/res/layout/contact_tile_list.xml
+++ b/res/layout/contact_tile_list.xml
@@ -32,6 +32,7 @@
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:layout_marginTop="@dimen/empty_message_top_margin"
- android:textAppearance="?android:attr/textAppearanceMedium"/>
+ android:textColor="?android:attr/textColorSecondary"
+ android:textAppearance="?android:attr/textAppearanceLarge"/>
</FrameLayout>
diff --git a/res/layout/contacts_unavailable_fragment.xml b/res/layout/contacts_unavailable_fragment.xml
index 556658962..1abc020da 100644
--- a/res/layout/contacts_unavailable_fragment.xml
+++ b/res/layout/contacts_unavailable_fragment.xml
@@ -14,70 +14,81 @@
limitations under the License.
-->
-<com.android.contacts.widget.InterpolatingLayout
+<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/panel_message">
-
+ android:fillViewport="true">
<LinearLayout
- android:layout_width="0dip"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
android:orientation="vertical"
- ex:layout_narrowParentWidth="600dip"
- ex:layout_narrowWidth="400dip"
- ex:layout_wideParentWidth="880dip"
- ex:layout_wideWidth="600dip">
-
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_horizontal"
+ android:background="@drawable/panel_message">
<TextView
android:id="@+id/message"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_marginBottom="20dip" />
+ android:layout_marginTop="48dip"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textColor="?android:attr/textColorSecondary" />
- <Button
- android:id="@+id/create_contact_button"
- android:layout_width="match_parent"
+ <TextView
+ android:id="@+id/secondary_message"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="15dip"
- android:text="@string/contacts_unavailable_create_contact" />
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginBottom="@dimen/no_accounts_message_margin" />
- <Button
- android:id="@+id/add_account_button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="15dip"
- android:text="@string/contacts_unavailable_add_account" />
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_marginLeft="48dip"
+ android:layout_marginRight="48dip"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent">
+ <Button
+ android:id="@+id/create_contact_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="15dip"
+ android:text="@string/contacts_unavailable_create_contact" />
- <Button
- android:id="@+id/import_contacts_button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="15dip"
- android:text="@string/contacts_unavailable_import_contacts" />
+ <Button
+ android:id="@+id/add_account_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="15dip"
+ android:text="@string/contacts_unavailable_add_account" />
- <Button
- android:id="@+id/import_failure_uninstall_button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="15dip"
- android:text="@string/upgrade_out_of_memory_uninstall" />
+ <Button
+ android:id="@+id/import_contacts_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="15dip"
+ android:text="@string/contacts_unavailable_import_contacts" />
- <Button
- android:id="@+id/import_failure_retry_button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="15dip"
- android:text="@string/upgrade_out_of_memory_retry" />
+ <Button
+ android:id="@+id/import_failure_uninstall_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="15dip"
+ android:text="@string/upgrade_out_of_memory_uninstall" />
- <ProgressBar
- android:id="@+id/progress"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginBottom="15dip" />
+ <Button
+ android:id="@+id/import_failure_retry_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="15dip"
+ android:text="@string/upgrade_out_of_memory_retry" />
+
+ <ProgressBar
+ android:id="@+id/progress"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginBottom="15dip" />
+ </LinearLayout>
</LinearLayout>
-</com.android.contacts.widget.InterpolatingLayout>
+</ScrollView> \ No newline at end of file
diff --git a/res/layout/group_browse_list_fragment.xml b/res/layout/group_browse_list_fragment.xml
index 6e82e8f40..e3d98f0db 100644
--- a/res/layout/group_browse_list_fragment.xml
+++ b/res/layout/group_browse_list_fragment.xml
@@ -38,32 +38,31 @@
android:layout_marginTop="@dimen/empty_message_top_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingTop="8dip"
android:gravity="center_horizontal"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textColor="?android:attr/textColorSecondary"
android:text="@string/noGroups" />
<LinearLayout
android:id="@+id/add_accounts"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
android:orientation="vertical">
<TextView
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
- android:layout_marginTop="@dimen/no_accounts_message_margin"
android:layout_marginBottom="@dimen/no_accounts_message_margin"
android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"
android:text="@string/noAccounts" />
<Button
android:id="@+id/add_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginLeft="@dimen/add_account_button_left_margin"
- android:layout_marginRight="@dimen/add_account_button_right_margin"
android:gravity="center"
android:layout_gravity="center_horizontal"
android:textAppearance="?android:attr/textAppearanceMedium"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index a67aa6b3f..f5fd3bf88 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -240,10 +240,8 @@
<dimen name="call_detail_action_bar_height">60dip</dimen>
<!-- Empty message margins -->
- <dimen name="empty_message_top_margin">43dip</dimen>
- <dimen name="no_accounts_message_margin">15dip</dimen>
- <dimen name="add_account_button_left_margin">50dip</dimen>
- <dimen name="add_account_button_right_margin">50dip</dimen>
+ <dimen name="empty_message_top_margin">48dip</dimen>
+ <dimen name="no_accounts_message_margin">20dip</dimen>
<!-- For contact filter setting screens -->
<dimen name="contact_filter_left_margin">16dip</dimen>