diff options
-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> |