summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorTom Hennen <TomHennen@users.noreply.github.com>2015-07-20 20:10:18 -0400
committerTom Hennen <TomHennen@users.noreply.github.com>2015-07-20 20:10:18 -0400
commitd1ef7f63ff3e66f95c510939717aa935cadb2f7b (patch)
tree96dc12640b9cc64bbe28cd21fdc8d29d09ba2fc3 /app/src/main/res
parentca0bc9e24db090515df485e41bf17ec8cf32cfd1 (diff)
parent76393e1e7c029ff5837b2210a9ef891b897df1b8 (diff)
downloadAntennaPod-d1ef7f63ff3e66f95c510939717aa935cadb2f7b.zip
Merge pull request #1020 from mfietz/feature/queue-information
Queue shows number of episodes and total duration
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/queue_fragment.xml30
1 files changed, 23 insertions, 7 deletions
diff --git a/app/src/main/res/layout/queue_fragment.xml b/app/src/main/res/layout/queue_fragment.xml
index 307d95a8d..339369971 100644
--- a/app/src/main/res/layout/queue_fragment.xml
+++ b/app/src/main/res/layout/queue_fragment.xml
@@ -1,18 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dslv="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
+ <TextView
+ android:id="@+id/info_bar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:gravity="center"
+ android:textSize="12sp"
+ android:text="42 episodes \u2022 5 hours 17 minutes"/>
+
+ <View
+ android:id="@+id/divider"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_below="@id/info_bar"
+ android:background="?android:attr/listDivider"/>
+
<com.mobeta.android.dslv.DragSortListView
android:id="@android:id/list"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:clipToPadding="false"
- android:paddingBottom="@dimen/list_vertical_padding"
- android:paddingTop="@dimen/list_vertical_padding"
android:scrollbarStyle="outsideOverlay"
+ android:layout_below="@+id/divider"
dslv:collapsed_height="2dp"
dslv:drag_enabled="true"
dslv:drag_handle_id="@id/drag_handle"
@@ -31,7 +46,7 @@
android:id="@id/android:empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_gravity="center"
+ android:layout_centerInParent="true"
android:gravity="center"
android:text="@string/no_items_label" />
@@ -39,12 +54,13 @@
android:id="@+id/progLoading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center"
+ android:layout_centerInParent="true"
android:indeterminateOnly="true"
android:visibility="gone" />
<LinearLayout
android:id="@+id/undobar"
+ android:layout_alignParentBottom="true"
style="@style/UndoBar">
<TextView
@@ -57,4 +73,4 @@
</LinearLayout>
-</FrameLayout>
+</RelativeLayout>