diff options
author | Raghul Jagannathan <raghul@redmart.com> | 2015-05-27 08:31:42 +0800 |
---|---|---|
committer | Raghul Jagannathan <raghul@redmart.com> | 2015-05-27 08:31:42 +0800 |
commit | d0022e053e4abfe35dac4ae2d90c6960982181fd (patch) | |
tree | a03a02dda68d9956e07759aad87cc9991d0b8b97 /app/src/main/res/layout | |
parent | ba036e14990a6dd7e8a5076bdc20176532a4f417 (diff) | |
download | AntennaPod-d0022e053e4abfe35dac4ae2d90c6960982181fd.zip |
Subscription view for managing feeds and Navigation drawer feed list cleanup
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/fragment_subscriptions.xml | 16 | ||||
-rw-r--r-- | app/src/main/res/layout/subscription_item.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/layout/subscription_view.xml | 58 |
3 files changed, 86 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..8a61e5fa5 --- /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>
\ No newline at end of file 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..fc89ab74d --- /dev/null +++ b/app/src/main/res/layout/subscription_item.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <de.danoeh.antennapod.view.SubscriptionViewItem + android:layout_width="match_parent" + android:id="@+id/subscription_item" + android:layout_height="match_parent"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/subscription_view.xml b/app/src/main/res/layout/subscription_view.xml new file mode 100644 index 000000000..fad32799c --- /dev/null +++ b/app/src/main/res/layout/subscription_view.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <ImageView + android:id="@+id/imgvCover" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_launcher" /> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/cover_image_bg"> + + </RelativeLayout> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_margin="5dp" + android:ellipsize="end" + android:maxLines="1" + android:text="@string/app_name" + android:textColor="@color/white" + android:textSize="12sp" /> + + <RelativeLayout + android:layout_width="18dp" + android:layout_height="18dp" + android:layout_alignParentBottom="true" + android:layout_margin="5dp" + android:background="@drawable/unread_circle"> + + <TextView + android:id="@+id/unread_count_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_centerInParent="true" + android:ellipsize="end" + android:maxLines="1" + android:text="3" + android:textColor="@color/white" + android:textSize="11sp" /> + + </RelativeLayout> + + +</RelativeLayout>
\ No newline at end of file |