In an Android ListView
, how can I make the scrollbar
appear on the left side?
The way to do it is add div with direction: rtl; as parent element, and for child div set direction: ltr; . $( ". your selector of child element" ). wrap( "<div class='scroll'></div>" );
We can use the CSS “::-webkit-scrollbar” property which is responsible for changing the shape, color, size, shade, shadow, etc. of the scroll bar. But, here the property which we will use is the direction property of CSS for changing the position of the scroll bar.
Click One-Finger Scrolling. Select the Enable horizontal scrolling check box in the right pane. Click Apply and OK to save and go back to the Desktop. The horizontal scrolling function should be working on any application that needs to scroll left or right.
example:
mView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_LEFT);
You can move the scrollbar position to the left for any View using View.SCROLLBAR_POSITION_LEFT.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With