Adroid Summary--android listview beautification, personalization change properties

Source: Internet
Author: User

The first is the Stackfrombottom property, which is only after the list that you do well displays the bottom of your list, with a value of true and False
android:stackfrombottom= "true"
           
Second is the Transciptmode property, you need to track or view information in real time with a ListView or other control that displays a large number of items, and you want the latest entries to automatically scroll to the viewable range. By setting the Control Transcriptmode property, you can automatically slide the controls on the Android platform (support ScrollBar) to the bottom.
android:transcriptmode= "Alwaysscroll"
   
The third cachecolorhint attribute, many people want to be able to change its background, so that he can conform to the overall UI design, change the background is very simple only need to prepare a picture and then specify the property android:background= "@ DRAWABLE/BG ", but don't be happy too early, when you do this, you find that the background is changed, but when you drag, or click on the list blank position to find that the ListItem has become black, destroying the overall effect.
If you just change the color of the background, you can specify android:cachecolorhint as the color you want, if you are using a picture to do the background, it will be as long as android: Cachecolorhint is specified as transparent (#00000000) .

The fourth Divider property, the function of which is to set a picture as an interval between each item, or to remove the split line between items
android:divider= "@drawable/list_driver" where @drawable/list_driver is a picture resource and is set to Android if you do not want to display the split line : Divider= "@drawable/@null" on it.
Fifth Fadingedge property, with black shadows on top and bottom
android:fadingedge= "None" after setting no Shadow ~

The Fifth scrollbars property, which is to hide the scroll bar of the ListView,
android:scrollbars= "None" with setverticalscrollbarenabled (true); the effect is the same, not active when hidden, when the activity is also hidden

sixth Fadescrollbars property, android:fadescrollbars= "true"    When configuring the ListView layout, setting this property to True enables the auto-hide and display of scroll bars.

Adroid Summary--android ListView, personalization changed properties

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.