diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-02-14 20:44:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 20:44:49 +0100 |
commit | 178006bcd79301805f4fd9c8dca80344eb6ce667 (patch) | |
tree | dd90a30577417632c9f1e442428093e2e1055f63 /app | |
parent | 09927c060c838157689ae100076bb73e07c1c920 (diff) | |
parent | e4179dd1ce4ab96cf7e0ad7fe7b811e69f4f8c05 (diff) | |
download | AntennaPod-178006bcd79301805f4fd9c8dca80344eb6ce667.zip |
Merge pull request #3861 from ByteHamster/fix-small-subscription
Fixed subscription screen overflowing when having 5 columns and broken images
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/res/layout/subscription_item.xml | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/app/src/main/res/layout/subscription_item.xml b/app/src/main/res/layout/subscription_item.xml index 502fa8672..d065c5cf1 100644 --- a/app/src/main/res/layout/subscription_item.xml +++ b/app/src/main/res/layout/subscription_item.xml @@ -1,24 +1,28 @@ <?xml version='1.0' encoding='utf-8'?> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" +<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="horizontal"> + android:layout_height="match_parent"> <de.danoeh.antennapod.view.SquareImageView android:id="@+id/imgvCover" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" - tools:src="@mipmap/ic_launcher_round"> - </de.danoeh.antennapod.view.SquareImageView> + tools:src="@mipmap/ic_launcher_round" /> <com.joanzapata.iconify.widget.IconTextView android:id="@+id/txtvTitle" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/light_gray" + android:layout_alignLeft="@+id/imgvCover" + android:layout_alignRight="@+id/imgvCover" + android:layout_alignStart="@+id/imgvCover" + android:layout_alignEnd="@+id/imgvCover" + android:layout_alignTop="@+id/imgvCover" + android:layout_alignBottom="@+id/imgvCover" android:ellipsize="end" android:gravity="center" tools:text="@string/app_name" /> @@ -27,11 +31,12 @@ android:id="@+id/triangleCountView" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_gravity="right|top" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_alignParentTop="true" app:backgroundColor="@color/antennapod_blue" app:corner="rightTop" app:primaryText="Test" app:primaryTextColor="@color/white" - app:primaryTextSize="12sp"> - </jp.shts.android.library.TriangleLabelView> -</FrameLayout> + app:primaryTextSize="12sp" /> +</RelativeLayout> |