aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-08-19 18:56:01 -0700
committerScott Jackson <daneren2005@gmail.com>2015-08-19 18:56:01 -0700
commitebb030da99785161852a8cf3fc3d62b602758165 (patch)
treeb3618b2e94cfe3bdaef25c498f123957c0fa3494 /app/src/main/res/layout
parent0fdcde2c7cd2886454b8721fb9d50bae03dca9fe (diff)
downloaddsub-ebb030da99785161852a8cf3fc3d62b602758165.tar.gz
dsub-ebb030da99785161852a8cf3fc3d62b602758165.tar.bz2
dsub-ebb030da99785161852a8cf3fc3d62b602758165.zip
Put back fast scrolling for artists, podcasts, and playlists
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/abstract_recycler_fragment.xml19
-rw-r--r--app/src/main/res/layout/fast_scroller.xml25
2 files changed, 40 insertions, 4 deletions
diff --git a/app/src/main/res/layout/abstract_recycler_fragment.xml b/app/src/main/res/layout/abstract_recycler_fragment.xml
index 47141450..0e0c87f4 100644
--- a/app/src/main/res/layout/abstract_recycler_fragment.xml
+++ b/app/src/main/res/layout/abstract_recycler_fragment.xml
@@ -10,12 +10,23 @@
android:layout_height="fill_parent"
android:orientation="vertical" >
- <android.support.v7.widget.RecyclerView
- android:id="@+id/fragment_recycler"
+ <RelativeLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
- android:layout_weight="1.0"
- android:scrollbars="vertical"/>
+ android:layout_weight="1.0">
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/fragment_recycler"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:scrollbars="vertical"/>
+
+ <github.daneren2005.dsub.view.FastScroller
+ android:id="@+id/fragment_fast_scroller"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_alignParentRight="true"/>
+ </RelativeLayout>
<include layout="@layout/tab_progress" />
</LinearLayout>
diff --git a/app/src/main/res/layout/fast_scroller.xml b/app/src/main/res/layout/fast_scroller.xml
new file mode 100644
index 00000000..b2e244e3
--- /dev/null
+++ b/app/src/main/res/layout/fast_scroller.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/fastscroller_bubble"
+ android:layout_gravity="right|end"
+ android:gravity="center"
+ android:textSize="48sp" tools:text="A"
+ android:layout_width="wrap_content"
+ android:textColor="#FFffffff"
+ android:layout_height="wrap_content"
+ android:background="@drawable/fast_scroller_bubble"
+ android:visibility="visible"/>
+
+ <ImageView
+ android:id="@+id/fastscroller_handle"
+ android:layout_width="wrap_content"
+ android:layout_marginRight="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_height="wrap_content"
+ android:src="@drawable/fast_scroller_handle"/>
+</merge> \ No newline at end of file