android - view.invalidate not working on phone -


i have custom view, made of several view , label components. when user touches view, draw frame around view indicate selected status, , background changes on double tap. frame drawn using overridden draw function of view passing view frame color different background , calling view.invalidate(). same background change.

this used work long developing api 7. on phone runs api 16. migrated code api 11+ , selected frame not showing anymore , background not change on phone though still working in emulator (api 14).

a afternoon of trying trace error is, figured out on phone, calling view.invalidate() not triggering redraw of view. tried view.requestlayout() , view.postinvalidate() (just make sure) same result. putting invalidate command in separate thread did not work either.

to summarize:
code api 7 - phone api 16 - emulator api 7 14 view.invalidate works
code api 11 - phone api 16 - emulator api 11 14 view.invalidate not work on phone on emulator.

i have motorola razr m verizon

is known bug or there change in handling of things in api 11?

any appreciated.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -