Android平台:
我需要把页边距在列表视图(它是自定义的)垂直滚动条的右侧。请看附件中的图片。默认滚动条位于列表视图的最右侧。
需要你的帮助。谢谢。
发布于 2011-05-18 15:11:01
请参考View
的android:scrollbarStyle
属性上的documentation。您可能要使用的样式是insideOverlay
(与android:paddingRight
结合使用)。
就像这样
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal"
android:paddingRight="50dip">
<ListView
android:id="@+id/scrollable_table"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbarStyle="insideOverlay">
.
.
.
发布于 2017-07-08 22:52:08
尝试启用快速滚动,它会在大部分时间内完成此工作:
<ListView
android:id="@+id/chapter_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fastScrollEnabled="true"/>
https://stackoverflow.com/questions/5978430
复制相似问题