Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the touch area #107

Open
jooleeanh opened this issue Oct 27, 2017 · 1 comment
Open

Increase the touch area #107

jooleeanh opened this issue Oct 27, 2017 · 1 comment

Comments

@jooleeanh
Copy link

I couldn't find any documentation on how to increase the touch area of the DragScrollBar (it's pretty hard to catch it unless you make it pretty fat).

In the end, I've found a work around and thought I'd leave it here in case anyone was looking to do the same and would be looking here. Maybe add to the documentation ?

You can increase the touch zone by simultaneously increasing:
app:msb_barThickness
android:paddingRight
android:layout_marginRight
In my case, here are the settings I used:

<com.turingtechnologies.materialscrollbar.DragScrollBar
        android:id="@+id/DragScrollBar"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:paddingRight="16dp"
        android:paddingEnd="16dp"
        android:layout_marginRight="8dp"
        android:layout_marginEnd="8dp"
        app:msb_barColor="@color/Grey"
        app:msb_handleColor="@color/Green"
        app:msb_lightOnTouch="false"
        app:msb_barThickness="32dp"
        app:msb_recyclerView="@+id/RecyclerView"
        app:msb_textColor="@color/White" />
@turing-tech
Copy link
Owner

Triaged for a future release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants