diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-25 15:23:27 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-25 15:23:35 +0100 |
commit | d77e04d1c150287f5e77cc6244cde662cbba28b5 (patch) | |
tree | 7b32c9f6a9535b4ad6280097cebb543d02f3e745 /app/src/main/res/layout/gpodnet_podcast_listitem.xml | |
parent | c488b6c3fb0223e2d3eaf867b5fa950c9cbc47fd (diff) | |
download | AntennaPod-d77e04d1c150287f5e77cc6244cde662cbba28b5.zip |
Round icons in search list
Diffstat (limited to 'app/src/main/res/layout/gpodnet_podcast_listitem.xml')
-rw-r--r-- | app/src/main/res/layout/gpodnet_podcast_listitem.xml | 145 |
1 files changed, 69 insertions, 76 deletions
diff --git a/app/src/main/res/layout/gpodnet_podcast_listitem.xml b/app/src/main/res/layout/gpodnet_podcast_listitem.xml index e5f44220f..4e05f5599 100644 --- a/app/src/main/res/layout/gpodnet_podcast_listitem.xml +++ b/app/src/main/res/layout/gpodnet_podcast_listitem.xml @@ -1,87 +1,80 @@ <?xml version="1.0" encoding="utf-8"?> - -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:paddingBottom="8dp" - tools:background="@android:color/darker_gray"> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingTop="8dp" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:paddingBottom="8dp" + tools:background="@android:color/darker_gray"> <ImageView - android:id="@+id/imgvCover" - android:layout_width="@dimen/thumbnail_length_itemlist" - android:layout_height="@dimen/thumbnail_length_itemlist" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true" - android:layout_marginRight="8dp" - android:layout_marginEnd="8dp" - android:adjustViewBounds="true" - android:contentDescription="@string/cover_label" - android:cropToPadding="true" - android:scaleType="fitXY" - tools:src="@drawable/ic_antenna" - tools:background="@android:color/holo_green_dark" /> - - <LinearLayout - android:id="@+id/subscribers_container" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignTop="@id/txtvTitle" - android:layout_alignParentRight="true" - android:layout_alignParentEnd="true" - android:orientation="horizontal"> + android:id="@+id/imgvCover" + android:layout_width="@dimen/thumbnail_length_itemlist" + android:layout_height="@dimen/thumbnail_length_itemlist" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:adjustViewBounds="true" + android:contentDescription="@string/cover_label" + android:cropToPadding="true" + android:scaleType="fitXY" + tools:src="@drawable/ic_antenna" + tools:background="@android:color/holo_green_dark"/> - <ImageView - android:id="@+id/imgFeed" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_marginRight="-4dp" - android:layout_marginEnd="-4dp" - android:src="?attr/feed" /> - <TextView - android:id="@+id/txtvSubscribers" - style="@style/AntennaPod.TextView.ListItemSecondaryTitle" - android:layout_width="wrap_content" + <LinearLayout + android:layout_width="match_parent" android:layout_height="wrap_content" - android:lines="1" - tools:text="150" - tools:background="@android:color/holo_green_dark" /> + android:layout_centerVertical="true" + android:layout_toRightOf="@id/imgvCover" + android:layout_toEndOf="@id/imgvCover" + android:orientation="vertical"> - </LinearLayout> + <TextView + android:id="@+id/txtvTitle" + style="@style/AntennaPod.TextView.ListItemPrimaryTitle2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:maxLines="2" + android:includeFontPadding="false" + tools:text="Title" + tools:background="@android:color/holo_green_dark"/> - <TextView - android:id="@+id/txtvTitle" - style="@style/AntennaPod.TextView.ListItemPrimaryTitle2" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_toRightOf="@id/imgvCover" - android:layout_toEndOf="@id/imgvCover" - android:layout_toLeftOf="@id/subscribers_container" - android:layout_toStartOf="@id/subscribers_container" - android:layout_alignTop="@id/imgvCover" - android:maxLines="2" - android:includeFontPadding="false" - tools:text="Title" - tools:background="@android:color/holo_green_dark" /> + <TextView + android:id="@+id/txtvAuthor" + style="android:style/TextAppearance.Small" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="14sp" + android:textColor="?android:attr/textColorSecondary" + android:ellipsize="middle" + android:maxLines="2" + tools:text="author" + tools:background="@android:color/holo_green_dark"/> - <TextView - android:id="@+id/txtvAuthor" - style="android:style/TextAppearance.Small" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_toRightOf="@id/imgvCover" - android:layout_toEndOf="@id/imgvCover" - android:layout_below="@id/txtvTitle" - android:textSize="14sp" - android:textColor="?android:attr/textColorSecondary" - android:ellipsize="middle" - android:maxLines="2" - tools:text="author" - tools:background="@android:color/holo_green_dark"/> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:gravity="center_vertical"> + <ImageView + android:layout_width="14sp" + android:layout_height="14sp" + app:srcCompat="?attr/feed"/> + <TextView + android:id="@+id/txtvSubscribers" + style="@style/AntennaPod.TextView.ListItemSecondaryTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:lines="1" + tools:text="150" + tools:background="@android:color/holo_green_dark"/> + </LinearLayout> + </LinearLayout> </RelativeLayout> |