Improved list items when using a large font size
This commit is contained in:
parent
d9bdc1357e
commit
50cf38431d
|
@ -3,7 +3,7 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
tools:background="@android:color/darker_gray">
|
tools:background="@android:color/darker_gray">
|
||||||
|
|
||||||
|
@ -18,64 +18,69 @@
|
||||||
android:contentDescription="@string/cover_label"
|
android:contentDescription="@string/cover_label"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
tools:src="@drawable/ic_stat_antenna_default"
|
tools:src="@drawable/ic_stat_antenna_default"
|
||||||
tools:background="@android:color/holo_green_dark" />
|
tools:background="@android:color/holo_green_dark"/>
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/thumbnail_length_downloaded_item"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="@dimen/listitem_threeline_textleftpadding"
|
android:layout_marginLeft="@dimen/listitem_threeline_textleftpadding"
|
||||||
android:layout_marginRight="@dimen/listitem_threeline_textrightpadding"
|
android:layout_marginRight="@dimen/listitem_threeline_textrightpadding"
|
||||||
android:layout_marginTop="@dimen/listitem_threeline_verticalpadding"
|
android:layout_marginTop="@dimen/listitem_threeline_verticalpadding"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_marginBottom="@dimen/listitem_threeline_verticalpadding"
|
||||||
tools:background="@android:color/holo_red_dark">
|
tools:background="@android:color/holo_red_dark">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/txtvTitle"
|
android:id="@+id/txtvTitle"
|
||||||
style="@style/AntennaPod.TextView.ListItemPrimaryTitle"
|
style="@style/AntennaPod.TextView.ListItemPrimaryTitle"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginBottom="4dp"
|
android:layout_marginBottom="4dp"
|
||||||
tools:text="Downloaded episode title"
|
tools:text="Downloaded episode title"
|
||||||
tools:background="@android:color/holo_green_dark" />
|
tools:background="@android:color/holo_green_dark"/>
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/txtvSize"
|
android:layout_width="match_parent"
|
||||||
style="@style/AntennaPod.TextView.ListItemSecondaryTitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_marginTop="@dimen/listitem_threeline_verticalpadding"
|
||||||
android:layout_alignParentBottom="true"
|
tools:background="@android:color/holo_red_dark" >
|
||||||
tools:text="23 MB"
|
|
||||||
tools:background="@android:color/holo_green_dark" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/txtvPublished"
|
android:id="@+id/txtvSize"
|
||||||
style="@style/AntennaPod.TextView.ListItemSecondaryTitle"
|
style="@style/AntennaPod.TextView.ListItemSecondaryTitle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
tools:text="23 MB"
|
||||||
android:layout_alignParentBottom="true"
|
tools:background="@android:color/holo_green_dark"/>
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
tools:text="Jan 23"
|
|
||||||
tools:background="@android:color/holo_green_dark" />
|
|
||||||
|
|
||||||
<ImageView
|
<View
|
||||||
android:id="@+id/imgvInPlaylist"
|
android:layout_width="0dip"
|
||||||
android:layout_width="@dimen/enc_icons_size"
|
android:layout_height="1dip"
|
||||||
android:layout_height="@dimen/enc_icons_size"
|
android:layout_weight="1" />
|
||||||
android:layout_toLeftOf="@id/txtvPublished"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:contentDescription="@string/in_queue_label"
|
|
||||||
android:src="?attr/stat_playlist"
|
|
||||||
android:visibility="visible"
|
|
||||||
tools:src="@drawable/ic_list_white_24dp"
|
|
||||||
tools:background="@android:color/holo_red_light" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
<ImageView
|
||||||
|
android:id="@+id/imgvInPlaylist"
|
||||||
|
android:layout_width="@dimen/enc_icons_size"
|
||||||
|
android:layout_height="@dimen/enc_icons_size"
|
||||||
|
android:contentDescription="@string/in_queue_label"
|
||||||
|
android:src="?attr/stat_playlist"
|
||||||
|
android:visibility="visible"
|
||||||
|
tools:src="@drawable/ic_list_white_24dp"
|
||||||
|
tools:background="@android:color/holo_red_light"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/txtvPublished"
|
||||||
|
style="@style/AntennaPod.TextView.ListItemSecondaryTitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="8dp"
|
||||||
|
tools:text="Jan 23"
|
||||||
|
tools:background="@android:color/holo_green_dark"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<include layout="@layout/vertical_list_divider"/>
|
<include layout="@layout/vertical_list_divider"/>
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
tools:background="@android:color/darker_gray">
|
tools:background="@android:color/darker_gray">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
<com.joanzapata.iconify.widget.IconTextView
|
<com.joanzapata.iconify.widget.IconTextView
|
||||||
android:id="@+id/txtvIcon"
|
android:id="@+id/txtvIcon"
|
||||||
android:layout_width="48dp"
|
android:layout_width="48sp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48sp"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:textSize="48sp"
|
android:textSize="48sp"
|
||||||
|
|
|
@ -5,9 +5,11 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
tools:background="@android:color/darker_gray">
|
tools:background="@android:color/darker_gray"
|
||||||
|
android:paddingTop="@dimen/listitem_threeline_verticalpadding"
|
||||||
|
android:paddingBottom="@dimen/listitem_threeline_verticalpadding">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -23,7 +25,6 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:layout_marginLeft="8dp"
|
android:layout_marginLeft="8dp"
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="8dp"
|
||||||
tools:text="NEW"
|
tools:text="NEW"
|
||||||
|
@ -37,7 +38,6 @@
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:layout_marginTop="@dimen/listitem_threeline_verticalpadding"
|
|
||||||
android:layout_toLeftOf="@id/statusUnread"
|
android:layout_toLeftOf="@id/statusUnread"
|
||||||
tools:text="Episode title"
|
tools:text="Episode title"
|
||||||
tools:background="@android:color/holo_green_dark" />
|
tools:background="@android:color/holo_green_dark" />
|
||||||
|
|
|
@ -152,6 +152,7 @@
|
||||||
android:src="?attr/av_fast_forward"
|
android:src="?attr/av_fast_forward"
|
||||||
android:textSize="@dimen/text_size_medium"
|
android:textSize="@dimen/text_size_medium"
|
||||||
android:textAllCaps="false"
|
android:textAllCaps="false"
|
||||||
|
android:maxLines="1"
|
||||||
tools:visibility="gone"
|
tools:visibility="gone"
|
||||||
tools:background="@android:color/holo_green_dark" />
|
tools:background="@android:color/holo_green_dark" />
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,11 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/content"
|
android:id="@+id/content"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
tools:background="@android:color/darker_gray">
|
tools:background="@android:color/darker_gray"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -48,7 +49,7 @@
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="@dimen/listitem_threeline_verticalpadding"
|
android:layout_marginBottom="@dimen/listitem_threeline_verticalpadding"
|
||||||
android:layout_marginLeft="@dimen/listitem_threeline_textleftpadding"
|
android:layout_marginLeft="@dimen/listitem_threeline_textleftpadding"
|
||||||
android:layout_marginRight="@dimen/listitem_threeline_textrightpadding"
|
android:layout_marginRight="@dimen/listitem_threeline_textrightpadding"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
tools:background="@android:color/darker_gray">
|
tools:background="@android:color/darker_gray"
|
||||||
|
android:paddingTop="@dimen/listitem_threeline_verticalpadding"
|
||||||
|
android:paddingBottom="@dimen/listitem_threeline_verticalpadding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imgvFeedimage"
|
android:id="@+id/imgvFeedimage"
|
||||||
|
@ -13,7 +15,6 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginBottom="@dimen/listitem_threeline_verticalpadding"
|
android:layout_marginBottom="@dimen/listitem_threeline_verticalpadding"
|
||||||
android:layout_marginLeft="@dimen/listitem_threeline_horizontalpadding"
|
android:layout_marginLeft="@dimen/listitem_threeline_horizontalpadding"
|
||||||
android:layout_marginTop="@dimen/listitem_threeline_verticalpadding"
|
|
||||||
android:contentDescription="@string/cover_label"
|
android:contentDescription="@string/cover_label"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
tools:src="@drawable/ic_stat_antenna_default"
|
tools:src="@drawable/ic_stat_antenna_default"
|
||||||
|
@ -24,7 +25,6 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginLeft="@dimen/listitem_iconwithtext_textleftpadding"
|
android:layout_marginLeft="@dimen/listitem_iconwithtext_textleftpadding"
|
||||||
android:layout_marginRight="@dimen/listitem_threeline_verticalpadding"
|
android:layout_marginRight="@dimen/listitem_threeline_verticalpadding"
|
||||||
android:layout_marginTop="@dimen/listitem_threeline_verticalpadding"
|
|
||||||
android:layout_toRightOf="@id/imgvFeedimage"
|
android:layout_toRightOf="@id/imgvFeedimage"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
tools:background="@android:color/holo_red_dark">
|
tools:background="@android:color/holo_red_dark">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_threeline_height"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
tools:background="@android:color/darker_gray">
|
tools:background="@android:color/darker_gray">
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
<dimen name="listitem_iconwithtext_textleftpadding">14dp</dimen>
|
<dimen name="listitem_iconwithtext_textleftpadding">14dp</dimen>
|
||||||
<dimen name="listitem_iconwithtext_textverticalpadding">16dp</dimen>
|
<dimen name="listitem_iconwithtext_textverticalpadding">16dp</dimen>
|
||||||
|
|
||||||
<dimen name="listitem_threeline_height">96dp</dimen>
|
|
||||||
<dimen name="listitem_threeline_textleftpadding">14dp</dimen>
|
<dimen name="listitem_threeline_textleftpadding">14dp</dimen>
|
||||||
<dimen name="listitem_threeline_textrightpadding">8dp</dimen>
|
<dimen name="listitem_threeline_textrightpadding">8dp</dimen>
|
||||||
<dimen name="listitem_threeline_verticalpadding">16dp</dimen>
|
<dimen name="listitem_threeline_verticalpadding">16dp</dimen>
|
||||||
|
|
Loading…
Reference in New Issue