Android7.0中文文档(API)-- GridView
来源:互联网 发布:算法导论pdf百度云 编辑:程序博客网 时间:2024/05/31 05:28
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/GridView.html
GridView
public class GridView
extendsAbsListView
A view that shows items in two-dimensional scrolling grid. The items in the grid come from theListAdapter
associated with this view.
一个视图,其在2个方向上滚动网格中显示项。这些在网格中的项来自与此视图关联的ListAdapter
。
See the Grid View guide.
请参考Grid View。
摘要
XML属性
android:columnWidth
设置列的固定宽度。 android:gravity
指定每个单元格中的重力值。 android:horizontalSpacing
列之间的默认水平间隔。 android:numColumns
定义要显示的列数。 android:stretchMode
定义列应如何拉伸以填充可用的空余空间 (如果有)。 android:verticalSpacing
行之间的默认垂直间隔。 继承XML属性
android.widget.AbsListView
From class
android.view.ViewGroup
From class
android.view.View
常量
int
AUTO_FIT
Creates as many columns as can fit on screen.
在屏幕上创建尽可能多的列。
int
NO_STRETCH
Disables stretching.
禁止拉伸。
int
STRETCH_COLUMN_WIDTH
Stretches columns.
拉伸列。
int
STRETCH_SPACING
Stretches the spacing between columns.
拉伸列之间的间隔。
int
STRETCH_SPACING_UNIFORM
Stretches the spacing between columns.
拉伸列之间的间隔。
继承常量
阅读全文
0 0
- Android7.0中文文档(API)-- GridView
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- 选择排序
- 关于FFmpeg 利用videotoolbox硬编
- [USACO1.3]滑雪课程设计Ski Course Design
- UVa213
- 在Macbook Pro上为TensorFlow设置GPU
- Android7.0中文文档(API)-- GridView
- Swift3.0 Result of call to 'XXX' is unused
- ④写给后端工程师的JavaScript教程——js有趣的非数字值NaN、Infinity
- 计算机文化学习笔记5
- Mac OSX 无共享的密钥情况下连接基于L2TP协议的VPN
- 进程池流程
- solr 对数据添加索引
- Hdu 4498 自适应辛普森积分
- Windows学习(008)--线程(一)