android - 有谁知道如何像这样更改回收器视图滚动条的宽度/长度?
问题描述
请查看蓝色矩形中的滚动条:
这是我的代码,我想改变滚动条的长度:
<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" />
解决方案
推荐阅读
- android - Retrofit 2 Request 在 Postman 中有效,但在 App 中无效
- python - 将 numpy 代码转换为 pytorch 删除 for 循环
- excel - 根据 ID 从不同的工作表中提取数据
- javascript - 如何使用jquery获取asp.net mvc中文本框更改的范围值
- python - 实现函数优化和非优化版本的最简洁方法?
- flutter - Flutter readAsBytesSync文件读取不完整以编码base64
- javascript - 如何在 APEX 20.1 的交互式网格中的选择列表中获取唯一值
- typescript - 多个本地策略在 PassportStrategy 中不起作用
- c - 此函数不返回正确的布尔值
- c# - 使用 Epson SDK 进行 xamarin android 收据打印的示例代码