Android-PdfMyXml
Android-PdfMyXml copied to clipboard
PDF checkbox is not checked.
Hello, i'm trying to print a checkbox but this is not checked when the pdf is generated.
in the layout
in the PDF
there's any solution for this?
thank you! 👍
Show me the piece of code that generates this please
I'm also not getting the updated view
this is an Android bug. after you check the checkbox, you need to force invalidation on the view. try using one of the invalidation calls of the view. if it is invalidated, then next call to draw should draw the correct state. also, make sure inflateOnMainThread is true if I recall