mobile/android/base/resources/layout/home_empty_page.xml
author Chenxia Liu <liuche@mozilla.com>
Fri, 30 Aug 2013 13:38:11 -0700
changeset 145139 aff6afb77f62802574a28e38fc9315b89c595200
parent 143520 dff6e98eaac0bfd79785f97273f9e9612ab92481
permissions -rw-r--r--
Bug 907852 - Unify position of empty state graphics. r=sriram

<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              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:gravity="top|center"
               android:scaleType="center"
               android:paddingBottom="10dp"/>

    <TextView android:id="@+id/home_empty_text"
              android:layout_width="fill_parent"
              android:layout_height="0dip"
              android:gravity="top|center"
              android:textAppearance="@style/TextAppearance.EmptyMessage"
              android:layout_weight="3"/>

</LinearLayout>