Bug 907852 - Unify position of empty state graphics. r=sriram
authorChenxia Liu <liuche@mozilla.com>
Fri, 30 Aug 2013 13:38:11 -0700
changeset 145139 aff6afb77f62
parent 145138 a2de1265566f
child 145140 7fce54972453
push id25195
push userryanvm@gmail.com
push dateSat, 31 Aug 2013 01:00:12 +0000
treeherdermozilla-central@4ba8dda1ee31 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssriram
bugs907852
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>