"Android" resolves Android's ListView control when scrolling background turns black

Source: Internet
Author: User

If you use the ListView control on a non-black background, Android may default to the background of this list control suddenly black when scrolling the ListView. This may cause the program's black background and the main program's subject to be uncoordinated. Solution Google also considered the design of Android, in the layout of the ListView add Android:cachecolorhint= "#00000000" properties.

Such as:

<?xml version= "1.0" encoding= "Utf-8"? ><listview xmlns:android= "http://schemas.android.com/apk/res/ Android "    android:id=" @+id/comlist "    android:layout_width=" fill_parent "    android:layout_height=" Fill_ Parent "    android:background=" @color/white "   android:cachecolorhint=" #00000000 " >< /listview>

"Android" resolves Android's ListView control when scrolling background turns black

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.