[英]How to make setVerticalScrollBarEnabled(false) when you have scroll in gridView?
I have this gridview 我有这个gridview
<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" >
but I don't know how to make 但是我不知道怎么做
setVerticalScrollBarEnabled(false);
If i am getting you right then you just need to add the following line in your gridview in xml 如果我说对了,那么您只需要在xml的gridview中添加以下行
android:scrollbars="none"
Hop this is what you want. 跳,这就是你想要的。
Mark as up if it is. 标记为向上。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.