标签: android listview scrollbar
如何在我的Android应用程序中滚动固定大小的listView滚动条,如40px?
listView
答案 0 :(得分:0)
尝试提供像这样的listView属性,
<ListView android:id="@+id/list" android:layout_width="fillparent" android:layout_height="40dip"/>
这将使listview仅占用height属性中指定的高度,并且您可以单独获取40px的滚动。