Android ListView Remove Edge shadow, check color, drag, bottom pull, top drop background color, etc.

Source: Internet
Author: User
Android ListView Remove Edge shadow, check color, drag, bottom pull, top drop background color, etc.


The following is implemented through the XML definition, if necessary through the code implementation, find the corresponding is set mode settings.


Remove the blue area that appears when you drop the bottom part
Android:overscrollmode= "Never"


Remove the black shadow from the edge when the ListView slides to the top and bottom:
Android:fadingedge= "None"



Remove the default black background when dragging:
Android:cachecolorhint= "#00000000"



Remove the yellow background when selected:
Android:listselector= "#00000000"



Remove the black line between rows and lines:
List.setdivider (NULL);



The ListView automatically rolls to the bottom when refreshed:
List.setselection (Msglist.getadapter (). GetCount ()-1);

Android ListView Remove Edge shadow, check color, drag, bottom pull, top drop background color, etc.

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.