summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_subscriptions.xml16
-rw-r--r--app/src/main/res/layout/subscription_item.xml47
2 files changed, 63 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_subscriptions.xml b/app/src/main/res/layout/fragment_subscriptions.xml
new file mode 100644
index 000000000..a716cecb6
--- /dev/null
+++ b/app/src/main/res/layout/fragment_subscriptions.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <GridView
+ android:id="@+id/subscriptions_grid"
+ android:layout_width="match_parent"
+ android:numColumns="3"
+ android:horizontalSpacing="2dp"
+ android:verticalSpacing="2dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal">
+ </GridView>
+</LinearLayout>
diff --git a/app/src/main/res/layout/subscription_item.xml b/app/src/main/res/layout/subscription_item.xml
new file mode 100644
index 000000000..ffbcc33f1
--- /dev/null
+++ b/app/src/main/res/layout/subscription_item.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout 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="match_parent"
+ android:orientation="horizontal">
+
+ <de.danoeh.antennapod.view.SquareImageView
+ android:id="@+id/imgvCover"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:scaleType="centerCrop"
+ tools:src="@drawable/ic_launcher" />
+
+ <TextView
+ android:id="@+id/txtvTitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:layout_margin="@dimen/widget_margin"
+ android:ellipsize="end"
+ android:padding="@dimen/widget_margin"
+ style="@style/AntennaPod.TextView.Heading"
+ android:textSize="15sp"
+ android:textStyle="bold"
+ android:layout_gravity="bottom"
+ android:textColor="@android:color/white"
+ android:background="#55000000"
+ tools:text="@string/app_name" />
+
+ <jp.shts.android.library.TriangleLabelView
+ android:id="@+id/triangleCountView"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ app:backgroundColor="#bbbfbfbf"
+ app:corner="rightTop"
+ app:primaryText="Test"
+ app:primaryTextColor="@color/grey600"
+ app:primaryTextSize="12sp"
+ android:layout_gravity="right|top"/>
+
+</FrameLayout>