summaryrefslogtreecommitdiff
path: root/res/layout/empty_list_view.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/empty_list_view.xml')
-rw-r--r--res/layout/empty_list_view.xml49
1 files changed, 21 insertions, 28 deletions
diff --git a/res/layout/empty_list_view.xml b/res/layout/empty_list_view.xml
index 0313b0073..7f961a350 100644
--- a/res/layout/empty_list_view.xml
+++ b/res/layout/empty_list_view.xml
@@ -13,37 +13,30 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-<RelativeLayout
+<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:paddingTop="@dimen/empty_list_message_top_padding"
+ android:paddingBottom="@dimen/actionbar_and_tab_height"
android:minHeight="?android:attr/listPreferredItemHeight">
- <LinearLayout
- android:layout_width="match_parent"
+ <ImageView
+ android:id="@+id/emptyListViewImage"
android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingBottom="@dimen/actionbar_and_tab_height"
- android:layout_centerInParent="true" >
-
- <ImageView
- android:id="@+id/emptyListViewImage"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:gravity="center_horizontal" />
-
- <TextView
- android:id="@+id/emptyListViewMessage"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:minHeight="84dp"
- android:gravity="center_horizontal|top"
- android:textSize="@dimen/empty_list_message_text_size"
- android:textColor="@color/empty_list_text_color"
- android:paddingRight="16dp"
- android:paddingLeft="16dp" />
-
- </LinearLayout>
+ android:layout_width="match_parent"
+ android:gravity="center_horizontal" />
-</RelativeLayout>
+ <TextView
+ android:id="@+id/emptyListViewMessage"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="84dp"
+ android:gravity="center_horizontal|top"
+ android:textSize="@dimen/empty_list_message_text_size"
+ android:textColor="@color/empty_list_text_color"
+ android:paddingRight="16dp"
+ android:paddingLeft="16dp" />
+
+</LinearLayout>