Description of the GridView property value for the gap in Android

Source: Internet
Author: User

Android:columnwidth
Sets the width of the column. The associated method is: setcolumnwidth (int)
The purpose of the Stretchmode property value is to set the size of the entry in the GridView to fill the space. Parameter Stretchmode Optional value: No_stretch,stretch_spacing,stretch_spacing_uniform, or Stretch_column_width

Android:gravity
Sets the position of the content in this component in the component. The optional values are: top, bottom, left, right, center_vertical, fill_vertical, Center_horizontal, fill_horizontal, center, fill, Clip_ Vertical can select multiple, with "|" Separate. Correlation method: setgravity (int gravity)


Android:horizontalspacing
The spacing between the two columns. Correlation method: sethorizontalspacing (int)


Android:numcolumns
The number of columns. Correlation method: Setnumcolumns (int)


Android:stretchmode
Zoom mode. Correlation method: Setstretchmode (int)


Android:verticalspacing
The spacing between the two lines. Correlation method: setverticalspacing (int)

Description of the GridView property value for the gap in Android

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.