java - OnDraw bug on listview -
i have created listview custom ondraw method. want make item of listview appear "focused/selected" draw red line on it. on android 2.3 phone when scroll listview created ondraw method appears under textviews listview contains. if touch listview without scrolling selecting item , release finger ondraw method works fine again. on android 4 phone enverything works ok.
this annoying , makes application unusable on 2.3 android phone. know why happens? tell me if want me post sample code.
i have had similar problem before , solved using dispatchdraw method. add following listview class:
@override protected void dispatchdraw(canvas canvas) { //do drawing on under views children super.dispatchdraw(canvas); //do drawing on top of views children }
Comments
Post a Comment