Bug 907852 - Unify position of empty state graphics. r=sriram
authorChenxia Liu <liuche@mozilla.com>
Fri, 30 Aug 2013 13:38:11 -0700
changeset 145094 aff6afb77f62
parent 145093 a2de1265566f
child 145095 7fce54972453
push id2466
push usercliu@mozilla.com
push dateFri, 30 Aug 2013 20:38:22 +0000
treeherderfx-team@aff6afb77f62 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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>