Android-PdfMyXml icon indicating copy to clipboard operation
Android-PdfMyXml copied to clipboard

PDF checkbox is not checked.

Open gomezjc opened this issue 6 years ago • 3 comments

Hello, i'm trying to print a checkbox but this is not checked when the pdf is generated.

in the layout captura de pantalla 2018-05-31 a la s 9 31 09 p m

in the PDF captura de pantalla 2018-05-31 a la s 9 31 19 p m

there's any solution for this?

thank you! 👍

gomezjc avatar Jun 01 '18 02:06 gomezjc

Show me the piece of code that generates this please

HendrixString avatar Jun 01 '18 22:06 HendrixString

I'm also not getting the updated view

sourav-khunger avatar Feb 06 '20 08:02 sourav-khunger

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

HendrixString avatar Feb 06 '20 10:02 HendrixString