Closed jahirfiquitiva closed 7 years ago
Hi, While I cannot help you with all of your questions, I can answer 2 of them:
I have this exact situation and I fixed it by wrapping the fast scroller in a simple FrameLayout
, like this:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?actionBarSize">
<xyz.danoz.recyclerviewfastscroller.vertical.VerticalRecyclerViewFastScroller
... />
</FrameLayout>
Thank you!
For me, it worked by wrapping the fastscroller in a RelativeLayout
, like this:
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<xyz.danoz.recyclerviewfastscroller.vertical.VerticalRecyclerViewFastScroller
android:id="@+id/fast_scroller"
android:layout_width="15dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true" />
</RelativeLayout>
And if you use app:layout_scrollFlags
in your Toolbar/AppBar, you have to put the app:layout_behavior="@string/appbar_scrolling_view_behavior"
in the RelativeLayout, otherwise the FastScroller handle will be hidden under the Toolbar in the first positions of scroll.
Hi ...
Well, I'm not sure if it's an issue or my error, but I want to use CoordinatorLayout in my layout, and when using the FastScroller, it appears in the left side, instead of the right side.
And 2 things that I would like you to help me fix and/or for you to improve the lib.
Thank you.