AntennaPod/res/layout/feedlist_item.xml

123 lines
4.7 KiB
XML
Raw Normal View History

2011-12-23 19:22:06 +01:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
2012-06-22 17:27:21 +02:00
android:layout_height="match_parent"
2013-01-27 20:20:13 +01:00
android:paddingRight="8dp" >
2011-12-23 19:22:06 +01:00
2012-06-14 14:13:54 +02:00
<ImageView
android:id="@+id/imgvFeedimage"
android:layout_width="@dimen/thumbnail_length"
android:layout_height="@dimen/thumbnail_length"
2012-06-14 14:13:54 +02:00
android:layout_alignParentLeft="true"
2012-08-15 16:37:38 +02:00
android:layout_centerVertical="true"
2012-06-22 17:27:21 +02:00
android:layout_marginRight="4dip"
android:adjustViewBounds="true"
android:cropToPadding="true"
android:scaleType="fitXY" />
2012-06-14 14:13:54 +02:00
<LinearLayout
android:id="@+id/lEpisodeCounts"
2012-06-14 14:13:54 +02:00
android:layout_width="wrap_content"
android:layout_height="fill_parent"
2012-08-15 16:37:38 +02:00
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/lNewStatusLabel"
android:layout_width="@dimen/status_indicator_width"
android:layout_height="0dip"
android:layout_marginBottom="8dp"
android:layout_marginTop="4dp"
android:layout_weight="1"
android:background="@color/status_unread" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="4dp"
android:src="@drawable/white_circle" />
<TextView
android:id="@+id/txtvNewEps"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="4dp"
android:layout_marginRight="8dp"
android:maxLines="1"
android:minEms="2"
android:textColor="@color/white"
android:textSize="@dimen/text_size_micro"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/lProgressStatusLabel"
android:layout_width="@dimen/status_indicator_width"
android:layout_height="0dip"
android:layout_marginBottom="8dp"
android:layout_weight="1"
android:background="@color/ics_gray" >
<TextView
android:id="@+id/txtvProgressEps"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@color/status_progress"
android:maxLines="1"
android:minEms="2"
android:paddingLeft="4dp"
android:textColor="@color/white"
android:textSize="@dimen/text_size_micro"
android:textStyle="bold" />
<ImageView
android:layout_width="10dp"
android:layout_height="8dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="2dp"
android:layout_marginLeft="2dp"
android:src="@drawable/av_play_dark" />
</RelativeLayout>
</LinearLayout>
2012-08-15 16:37:38 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
2013-01-27 20:20:13 +01:00
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/lEpisodeCounts"
2012-06-22 17:27:21 +02:00
android:layout_toRightOf="@id/imgvFeedimage"
android:orientation="vertical" >
2012-06-14 14:13:54 +02:00
<TextView
android:id="@+id/txtvFeedname"
2012-06-22 17:27:21 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2013-01-27 20:20:13 +01:00
android:ellipsize="end"
android:maxLines="1"
2013-01-20 00:02:29 +01:00
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/text_size_small" />
2012-06-14 14:13:54 +02:00
<TextView
2012-06-22 17:27:21 +02:00
android:id="@+id/txtvNumEpisodes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2013-01-20 00:02:29 +01:00
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/text_size_micro" />
2012-06-14 14:13:54 +02:00
<TextView
android:id="@+id/txtvLastUpdate"
2012-06-22 17:27:21 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2013-01-20 00:02:29 +01:00
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/text_size_micro" />
2012-06-14 14:13:54 +02:00
</LinearLayout>
</RelativeLayout>