Simplify empty list custom view layout

This commit is contained in:
Shinokuni 2019-10-25 18:42:55 +02:00
parent ed7293e1d8
commit c37a3ed3b2
1 changed files with 18 additions and 23 deletions

View File

@ -2,31 +2,26 @@
<layout xmlns:android="http://schemas.android.com/apk/res/android" <layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"> xmlns:tools="http://schemas.android.com/tools">
<FrameLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:gravity="center_horizontal|center_vertical"
android:orientation="vertical"
tools:ignore="UseCompoundDrawables">
<LinearLayout <ImageView
android:layout_width="match_parent" android:id="@+id/empty_list_image"
android:layout_height="match_parent" android:layout_width="200dp"
android:gravity="center_horizontal|center_vertical" android:layout_height="200dp"
android:orientation="vertical" tools:src="@drawable/ic_rss_feed_grey" />
tools:ignore="UseCompoundDrawables">
<ImageView <TextView
android:id="@+id/empty_list_image" android:id="@+id/empty_list_text_v"
android:layout_width="200dp" style="@style/TextAppearance.AppCompat.Large"
android:layout_height="200dp" android:layout_width="wrap_content"
tools:src="@drawable/ic_rss_feed_grey" /> android:layout_height="wrap_content"
tools:text="@string/no_feed" />
<TextView
android:id="@+id/empty_list_text_v" </LinearLayout>
style="@style/TextAppearance.AppCompat.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="@string/no_feed" />
</LinearLayout>
</FrameLayout>
</layout> </layout>