Skip to content

Android ListView removing edges of the shadow

The following is realized by the XML definition, if required by code, find the corresponding set mode settings.

Remove the ListView slip into the dark shadow of top and bottom edge:android:fadingEdge=”none” android:fadingEdge=”none”

The black background removal when the default drag:android:cacheColorHint=”#00000000″ android:cacheColorHint=”#00000000″

Remove the selected yellow background color:android:listSelector=”#00000000″ android:listSelector=”#00000000″

Remove the black line between lines:list.setDivider(null); list.setDivider(null);

The ListView refresh automatically roll to the bottom.:list.setSelection(msgList.getAdapter().getCount()-1); list.setSelection(msgList.getAdapter().getCount()-1);

Leave a Reply

Your email address will not be published. Required fields are marked *