Android ListView Background and black-edged problem

Source: Internet
Author: User

Workaround 1: Add the Android:scrollingcache= "false" property to the ListView

Workaround 2: Add a android:cachecolorhint= "#00000000" (Transparent color) property to the ListView

Why do you set this up, which basically means that when you scroll the ListView, their color mixes and the process colors appear. And the above method can be used to remove the phenomenon of color mixing.

Some interesting ways to use the ListView property are also found in the search process

1, the top and bottom of the ListView has a black shadow.

Workaround: Add android:fadingedge= "None" property to the ListView

2, Lsitview between each item need to set a picture to do as the interval.

Workaround: android:divider= "@drawable/A" where @drawable/A is a picture resource

Android ListView Background and black-edged problem

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.