diff options
author | Christine Chen <christinech@google.com> | 2013-09-27 11:43:32 -0700 |
---|---|---|
committer | Christine Chen <christinech@google.com> | 2013-09-27 11:43:32 -0700 |
commit | 63d59db0d273ad88eaaf23275d8bd3870d06d893 (patch) | |
tree | cdd85f8661cd415e99759a1f7c95f55a9a3ee8e3 | |
parent | b4680c5b453d0c4028b34bf9dcd28ec76922e095 (diff) |
Final touches on no-fav card.
Bug: 10862541
Change-Id: I3117dff7e80d2b3a7577c37301978f896745478a
-rw-r--r-- | res/layout/phone_no_favorites.xml | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/res/layout/phone_no_favorites.xml b/res/layout/phone_no_favorites.xml index cc9b1ffad..1a0079f52 100644 --- a/res/layout/phone_no_favorites.xml +++ b/res/layout/phone_no_favorites.xml @@ -21,18 +21,6 @@ android:orientation="vertical" android:minHeight="?android:attr/listPreferredItemHeight"> - <ImageView - android:id="@+id/nofavorite_image" - android:layout_height="wrap_content" - android:layout_width="match_parent" - android:layout_gravity="center" - android:layout_alignParentTop="true" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" - android:paddingTop="36dp" - android:paddingBottom="16dp" - android:src="@drawable/no_favorites_banner" /> - <include android:id="@+id/show_all_contact_button_in_nofav" layout="@layout/show_all_contact_button" @@ -42,20 +30,34 @@ android:layout_alignParentLeft="true" android:layout_alignParentStart="true"/> - <TextView - android:id="@+id/title" + <LinearLayout + android:id="@+id/nofavorite_frame" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="match_parent" + android:orientation="vertical" android:layout_gravity="center" android:gravity="center" - android:layout_below="@id/nofavorite_image" - android:layout_above="@id/show_all_contact_button_in_nofav" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" - android:text="@string/no_favorites" - android:textAppearance="?android:attr/textAppearanceLarge" - android:textColor="@color/nofavorite_text_color" - android:layout_marginTop="8dp" - android:layout_marginBottom="8dp"/> + android:layout_alignParentTop="true" + android:layout_above="@id/show_all_contact_button_in_nofav"> + + <ImageView + android:id="@+id/nofavorite_image" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:gravity="center_horizontal" + android:src="@drawable/no_favorites_banner" + android:layout_marginBottom="14dp"/> + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:text="@string/no_favorites" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="@color/nofavorite_text_color"/> + </LinearLayout> </RelativeLayout> |