Android GridView special attributes

1.android:numColumns="auto_fit "the number of columns is set to Auto // GridView
2.android:columnWidth="90dp" // width of each column, i.e. the width Item
3.android:stretchMode="columnWidth "// scaling the column width size of the sync
4.android:verticalSpacing="10dp "// margin between the two rows
5.android:horizontalSpacing="10dp" // margin between the two
6.android:cacheColorHint="# 00000000 "// remove the default when you drag a black background
7.android:listSelector="#00000000" // yello background when excluding selected
8.android:scrollbars="none "// hide GridView scrollbars
9.android : fadeScrollbars = "true" // set to true can be achieved scroll bar automatically hide and show
10.android:fastScrollEnabled="true "// GridView appears to quickly scroll button (scroll to appear at least four)
11.android : fadingEdge = "none" // GridView fading (fade) edge color is empty, the default value is vertical. (It will be appreciated as the upper and lower edges of the tips color)
length fading 12.android:fadingEdgeLength="10dip "// definition (faded) edge
13.android:stackFromBottom="true "// set to true, you do a good job list will show the bottom of your list
14.android:transcriptMode="alwaysScroll" // When you add dynamic data, the list will automatically scroll down to the newest entries automatically scroll to the visible range
15.android:drawSelectorOnTop="false "// click and hold a record, the color will be the background color behind the record, the text visible (default false)

Guess you like

Origin blog.51cto.com/xingxin2066/2435656