I have an AndroidView where i get some custom Font via
Copy code
ResourcesCompat.getFont()
Is there any possibility to render this view in the preview? It failes with an exception "Font resource ID #0x7f080000 could not be retrieved"
If I build and deploy the application it all works fine
y
yschimke
12/03/2021, 9:02 AM
If it's important enough you can always protect that part with LocalInspectionMode.current. Hopefully that is a bug they fix though.
r
Rene Win
12/06/2021, 11:53 AM
@yschimke thanks, opted out with the localinspectionmode