Question 1:
When the ListView is dragged, the background image disappears into a black background. Wait until we have finished dragging our own background image to show it.
Workaround:
In XML:
Android:scrollingcache= "false" or android:cachecolorhint= "#00000000"
In the code:
Setscrollingcacheenabled (False) or Setcachecolorhint (0) or setcachecolorhint (color.transparent);
Question 2:
The top and bottom of the ListView have a black shadow.
Workaround:
In XML:
Android:fadingedge= "None"
In the code:
Setfadingedgelength (0);
Question 3:
Lsitview each item requires a picture to be set as an interval.
Workaround:
In XML:
Android:divider= "@drawable/list_driver
In Java:
Drawable dr = This.getresources (). getdrawable (R.colo.listviewdividerclour);
Listview.setdivider (DR);
Question 4:
By default, the selected item is yellow-orange, and sometimes we need to remove the effect:
Workaround:
In XML:
Listselector= "@android: color/transparent
In Java:
listview.setselector (drawable);
This article is from the "Heart to Bodhi" blog, please be sure to keep this source http://zhongkun.blog.51cto.com/1057583/1407969