Android GridView attribute meaning set (go)

Source: Internet
Author: User

Some special properties of the GridView:

1.android:numcolumns= "Auto_fit" //gridview The number of columns is set to Automatic

2.android:columnwidth= "90DP" //width of each column, which is the width of item

3.android:stretchmode= "ColumnWidth"//Zoom is synchronized with column width size

4.android:verticalspacing= the margin between "10DP" //two rows

5.android:horizontalspacing= margin between "10DP" //Two columns

6.android:cachecolorhint= "#00000000" //Remove the default black background when dragging

7.android:listselector= "#00000000" //Remove the yellow background when selected

8.android:scrollbars= "None" //Hide GridView scroll bar

9.android:fadescrollbars= "true" //set to True to enable auto-hide and display of scroll bars

10.android:fastscrollenabled= "true" //gridview a fast scrolling button (at least 4 page scrolling is displayed)

11.android:fadingedge= "None" //gridview fading (Fade) edge color is empty, the default value is vertical. (Can be understood as the top and bottom edge of the hint color)

12.android:fadingedgelength= "10dip" //defines the length of the fading (fade) edge

13.android:stackfrombottom= "true" //set to True, your list will show the bottom of your list

14.android:transcriptmode= "Alwaysscroll" //When you add data dynamically, the list will automatically scroll down the latest entries to automatically scroll to the viewable range

15.android:drawselectorontop= "false" //Click on a record, the color will be the background color after the record, the text of the content is visible (default is False)

http://blog.csdn.net/ztp800201/article/details/14469883

Android GridView attribute meaning set (go)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.