星空网 > 软件开发 > 操作系统

GridView的各种属性

 

 

 

<GridView
android:id="@+id/movie_list"
android:layout_width="906dp"
android:layout_height="654dp"
android:layout_marginLeft="230dp"
android:layout_marginTop="110dp"
android:paddingRight="60dp"
android:background="@color/transparent"
android:numColumns="5"
android:verticalSpacing="80dp"
android:horizontalSpacing="10dp"
android:scrollbars="vertical"
android:fadeScrollbars="false"
android:listSelector="@drawable/item_selected"
android:fadingEdge="none"
android:scrollbar
android:scrollbarTrackVertical="@drawable/scrollbar_track"
android:scrollbarThumbVertical="@drawable/scrollbar_thumb"
android:transcriptMode="disabled"/>


 

transcriptMode:希望最新的条目可以自动滚动到可视范围内。通过设置控件transcriptMode属性可以将Android平台的控件(支持ScrollBar)自动滑动到最底部。 

scrollbarTrackVertical:滚动条长条背景

scrollbarThumbVertical:滚动条短调背景

scrollbarStyle:定义滚动条的样式和位置

scrollbarSize:定义滚动条的大小,垂直时指宽度,水平时指高度

fadingEdge:属性用来设置拉滚动条时 ,边框渐变的放向。none(边框颜色不变),horizontal(水平方向颜色变淡),vertical(垂直方向颜色变淡)。

listSelector:item选中时的背景

fadeScrollbars:true scrollbar不滚动隐藏 




原标题:GridView的各种属性

关键词:GridView

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

关于美国旅游:https://www.vstour.cn/t/关于美国旅游.html
关于名胜古迹的对联:https://www.vstour.cn/t/关于名胜古迹的对联.html
关于墨西哥:https://www.vstour.cn/t/关于墨西哥.html
关于亲子游:https://www.vstour.cn/t/关于亲子游.html
关于亲子游的:https://www.vstour.cn/t/关于亲子游的.html
关于亲子游的活动有哪些:https://www.vstour.cn/t/关于亲子游的活动有哪些.html
珠海长隆横琴剧院票价是多少:https://www.vstour.cn/a/335166.html
珠海长隆横琴剧院交通指引:https://www.vstour.cn/a/335167.html
相关文章
我的浏览记录
最新相关资讯
跨境电商服务平台 | 深圳旅行社 | 东南亚物流