Changing position of scrollbar in Android RecyclerView -
hey wondering if possible change position of scroll bar in android recyclerview. move scroll bar closer right side of display. if point me in right direction link or appreciate because can't find on this.
thanks!
i have 1 workaround idea,
you can add main content layout top , bottom padding (or margin).
<framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:fab="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingtop="4dp" android:paddingbottom="4dp">
then recyclerview without defining styles, this:
<android.support.v7.widget.recyclerview android:id="@+id/cardlist" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical"/>
and if use cardview or other element, can add left , right borders him, scrollbar keep on right side , element not until edges:
<android.support.v7.widget.cardview xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_marginleft="6dp" android:layout_marginstart="6dp" android:layout_marginright="6dp" android:layout_marginend="6dp">
Comments
Post a Comment