如何使设置垂直滚动条启用(假)当你在网格视图中滚动时



我有这个网格视图

<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridView1"
android:numColumns="3"
android:gravity="center"
android:columnWidth="50dp"
android:stretchMode="columnWidth"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

但我不知道怎么做

setVerticalScrollBarEnabled(false);
如果我

说得对,那么你只需要在 xml 的网格视图中添加以下行

android:scrollbars="none"

跳 这就是你想要的。
如果是,则标记为向上。:)

相关内容

最新更新