首页 > 解决方案 > 有谁知道如何像这样更改回收器视图滚动条的宽度/长度?

问题描述

请查看蓝色矩形中的滚动条:

滚动条/指示器

这是我的代码,我想改变滚动条的长度:

<androidx.recyclerview.widget.RecyclerView
                android:id="@+id/recyclerViewTeaser"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:scrollbars="horizontal"
                android:fadeScrollbars="false"
                android:scrollbarThumbHorizontal="@color/orange_color_picker"
                android:scrollbarTrackHorizontal="@color/gray"
                app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />

标签: androidkotlinandroid-recyclerview

解决方案


推荐阅读