diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2021-10-24 17:52:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 17:52:37 +0200 |
commit | 406d0f17adf53ef0addb968383005dc3271a8b37 (patch) | |
tree | e0085c72eb4f4d08d605b74eb79604f10dc4fb08 /app | |
parent | aa4cb5938f31d29b01bfae588f2689b4d6a20252 (diff) | |
parent | e991c2471fc6b0620299c9a4731eedb169f0e507 (diff) | |
download | AntennaPod-406d0f17adf53ef0addb968383005dc3271a8b37.zip |
Merge pull request #5486 from johnjohndoe/preview-rendering
Improve rendering of layout previews.
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/res/layout/fragment_subscriptions.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/quick_feed_discovery_item.xml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/src/main/res/layout/fragment_subscriptions.xml b/app/src/main/res/layout/fragment_subscriptions.xml index 6dd112eed..a6f35068f 100644 --- a/app/src/main/res/layout/fragment_subscriptions.xml +++ b/app/src/main/res/layout/fragment_subscriptions.xml @@ -2,6 +2,7 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> @@ -42,7 +43,8 @@ android:layout_height="match_parent" android:layout_gravity="center_horizontal" android:paddingBottom="88dp" - android:clipToPadding="false" /> + tools:itemCount="2" + tools:listitem="@layout/subscription_item" /> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> diff --git a/app/src/main/res/layout/quick_feed_discovery_item.xml b/app/src/main/res/layout/quick_feed_discovery_item.xml index cb03b6677..c3a32f019 100644 --- a/app/src/main/res/layout/quick_feed_discovery_item.xml +++ b/app/src/main/res/layout/quick_feed_discovery_item.xml @@ -2,6 +2,7 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:squareImageView="http://schemas.android.com/apk/de.danoeh.antennapod" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="4dp" @@ -14,7 +15,8 @@ android:elevation="4dp" android:outlineProvider="bounds" android:foreground="?android:attr/selectableItemBackground" - squareImageView:direction="width" /> + squareImageView:direction="width" + tools:src="@android:drawable/sym_def_app_icon"/> </LinearLayout> |