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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -