android-scrollbar
How can I change the width/thickness of a scrollbar?
add the following property to your layout android:scrollbarSize=”50dip”
Scrollbar color in RecyclerView
You can do this by including following line of code in your Recyclerview android:scrollbarThumbVertical=”@drawable/yoursdrawablefile The drawable file in my case is: <?xml version=”1.0″ encoding=”utf-8″?> <shape xmlns:android=”http://schemas.android.com/apk/res/android”> <gradient android:startColor=”#000″ android:endColor=”#000″ android:angle=”45″/> <corners android:radius=”6dp” /> </shape>
Scrollbar not showing in RecyclerView
The solution is to set the vertical (or horizontal) scrollbar in the xml layout: <android.support.v7.widget.RecyclerView android:layout_width=”match_parent” android:layout_height=”match_parent” android:scrollbars=”vertical” />
Disable scrolling in webview?
Here is my code for disabling all scrolling in webview: // disable scroll on touch webview.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return (event.getAction() == MotionEvent.ACTION_MOVE); } }); To only hide the scrollbars, but not disable scrolling: WebView.setVerticalScrollBarEnabled(false); WebView.setHorizontalScrollBarEnabled(false); or you can try using single column layout but this only works … Read more
Remove scroll bar track from ScrollView in Android
To remove a scrollbar from a view (and its subclass) via xml: android:scrollbars=”none” http://developer.android.com/reference/android/view/View.html#attr_android:scrollbars