我正在使用ScrollView,我想设置ScrollBar大小,但我尝试的一切都失败了.我尝试使用属性android:scrollbarSize,带有样式,主题但没有.滚动条的大小始终相同.有什么建议?谢谢
我试过这个:
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="10px"
android:layout_marginBottom="15px"
android:scrollbarSize="20px"
android:scrollbarTrackVertical="@drawable/scrollbar_reflection"
android:scrollbarThumbVertical="@drawable/scrollbar_state2">
Run Code Online (Sandbox Code Playgroud)
但滚动条的宽度不会改变.
所以我创建了一个这样的样式文件:
<resources>
<style name="ShowAllScrollBar1">
<item name="android:scrollbarSize">20px</item>
</style>
</resources>
Run Code Online (Sandbox Code Playgroud)
然后在AndroidManifest中设置样式.