Bug 907852 - Unify position of empty state graphics. r=sriram
authorChenxia Liu <liuche@mozilla.com>
Fri, 30 Aug 2013 13:38:11 -0700
changeset 153123 aff6afb77f62802574a28e38fc9315b89c595200
parent 153122 a2de1265566fdb32c71db07ba835fa856fa72a2c
child 153124 7fce549724536ffe80bb2cf4abb9c10306b08158
push idunknown
push userunknown
push dateunknown
reviewerssriram
bugs907852
milestone26.0a1
Bug 907852 - Unify position of empty state graphics. r=sriram
mobile/android/base/resources/layout/home_empty_page.xml
--- a/mobile/android/base/resources/layout/home_empty_page.xml
+++ b/mobile/android/base/resources/layout/home_empty_page.xml
@@ -6,21 +6,29 @@
               android:id="@+id/home_empty_view"
               android:layout_width="fill_parent"
               android:layout_height="fill_parent"
               android:orientation="vertical"
               android:gravity="center"
               android:paddingLeft="50dp"
               android:paddingRight="50dp">
 
+    <!-- Empty spacer view -->
+    <View android:layout_width="fill_parent"
+          android:layout_height="0dip"
+          android:layout_weight="1"/>
+
     <ImageView android:id="@+id/home_empty_image"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
-               android:paddingBottom="15dp"/>
+               android:gravity="top|center"
+               android:scaleType="center"
+               android:paddingBottom="10dp"/>
 
     <TextView android:id="@+id/home_empty_text"
               android:layout_width="fill_parent"
-              android:layout_height="wrap_content"
-              android:gravity="center"
-              android:textAppearance="@style/TextAppearance.EmptyMessage"/>
+              android:layout_height="0dip"
+              android:gravity="top|center"
+              android:textAppearance="@style/TextAppearance.EmptyMessage"
+              android:layout_weight="3"/>
 
 </LinearLayout>