且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在列表视图项目和滚动条之间放置填充/间距[Android]

更新时间:2023-01-01 07:40:54

我找到了解决方法:
将滚动条样式设置为 outsideInset ,然后在右侧添加滚动条填充.

I have found the solution:
Set scroll bar style as outsideInset and then add scroll bar padding to right.

android:scrollbarStyle="outsideInset"
android:paddingRight="10dp"

就是这样!