I have a library for drawing, and I have a custom view. When any updates are needed, the library calls the view invalidate()
method. And then the onDraw()
method is onDraw()
, and everything works fine.
However, when I add the usesSdkVersion="14"
attribute to my AndroidManifest.xml file
, it stops working. I no longer like the onDraw()
view method.
FURTHER INFORMATION: It appears that when I call invalidate()
as a result of a button click in my application, the view is updated as expected. In addition, there is one animation in my library that works correctly. Therefore, apparently, it works correctly. But most of the time he does not redraw. Is there any state in which there may be a user view that will cause the OS to skip redrawing after calling invalidate()
?
source share