summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-02-13 20:36:04 +0100
committerByteHamster <info@bytehamster.com>2020-02-13 20:36:06 +0100
commite4179dd1ce4ab96cf7e0ad7fe7b811e69f4f8c05 (patch)
tree996d1f3608211a5c225d9a24864a6fe5fe692804 /app/src/main/res/layout
parentcf5a876dc412e2d747af49dffc786e5f61f6e52e (diff)
downloadAntennaPod-e4179dd1ce4ab96cf7e0ad7fe7b811e69f4f8c05.zip
Fixed subscription screen overflowing when having 5 columns and broken images
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/subscription_item.xml23
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>