Some properties of the Android control--Continuous update ...

Source: Internet
Author: User

Summarize some popular Android control properties that may be used

1.ListView

Android:drawselectorontop= "true"  click on a record, the color will be displayed on the top, the text on the record is obscured, so click on the text, text will not see android:drawselectorontop= " False "click on a record, the color will be behind the record, the background color, but the text of the recorded content is visible

Cancel Split Line/divider

Android:divider= "@null"  

After the ListView adds a button event, the entry cannot focus the button after Onitemclicklistener

Android:descendantfocusability= "Blocksdescendants"

Remove the black shadow from the edge when the ListView slides to the top and bottom

Android:fadingedge= "None"

Simply modify the scroll bar

Android:scrollbarthumbvertical= "@color/gray" android:scrollbarsize= "2DP"

Spacing of 2.GridView meshes
android:horizontalspacing= "8DP" android:verticalspacing= "8DP"  

3.TextView

Text Leading/Line spacing

<!-- set the line spacing, such as "6dip".  -android:linespacingextra<!---to-android: Linespacingmultiplier

Number of rows and display ellipses

Android:lines= "2"           android:ellipsize= "End"

4.View

Split Line/Divider Line

< View Android:layout_width = "Fill_parent" Android:layout_height = "1px" Android:background = "? Android:attr/listdivider" />

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.