summaryrefslogtreecommitdiff
path: root/res/layout/feedlist_item_grid.xml
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-08-11 15:45:30 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-08-11 15:45:30 +0200
commit522d61577b1c8eedf07d7690cee04e447cec51ed (patch)
treedf76ab2ea62857309fa6e244a86c5002fab16424 /res/layout/feedlist_item_grid.xml
parent168d48cd02f14af2a860183785ba4df947910e84 (diff)
downloadAntennaPod-522d61577b1c8eedf07d7690cee04e447cec51ed.zip
Implemented GridView in FeedlistFragment
Diffstat (limited to 'res/layout/feedlist_item_grid.xml')
-rw-r--r--res/layout/feedlist_item_grid.xml71
1 files changed, 71 insertions, 0 deletions
diff --git a/res/layout/feedlist_item_grid.xml b/res/layout/feedlist_item_grid.xml
new file mode 100644
index 000000000..5e0b72e1a
--- /dev/null
+++ b/res/layout/feedlist_item_grid.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" >
+
+ <ImageView
+ android:id="@+id/imgvFeedimage"
+ android:layout_width="160dip"
+ android:layout_height="160dip"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true"
+ android:layout_margin="8dp"
+ android:cropToPadding="true" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@id/imgvFeedimage"
+ android:layout_alignRight="@id/imgvFeedimage"
+ android:layout_below="@id/imgvFeedimage"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/txtvFeedname"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="8dp"
+ android:gravity="center_horizontal"
+ android:maxLines="2"
+ android:textStyle="bold" />
+
+ <TextView
+ android:id="@+id/txtvLastUpdate"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:textColor="@color/gray"
+ android:textStyle="italic" />
+
+ <TextView
+ android:id="@+id/txtvNumEpisodes"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="8dp"
+ android:gravity="center_horizontal"
+ android:textColor="@color/gray" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="25dp"
+ android:layout_alignRight="@id/imgvFeedimage"
+ android:layout_alignTop="@id/imgvFeedimage" >
+
+ <TextView
+ android:id="@+id/txtvNewEps"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/badge"
+ android:gravity="center"
+ android:maxLines="1"
+ android:textColor="@color/white"
+ android:textStyle="bold"
+ android:visibility="gone" />
+ </LinearLayout>
+
+</RelativeLayout> \ No newline at end of file