1

I've recently added a light and darkmode theme to my android app, this works great in the app itself but in the design view on Android Studio, all elements like textviews, imageviews etc are all white and have this message: cannot resolve theme reference ?attr/textcustom

This goes for text, images, backgrounds. All with the same error

One of the many errors

In this image you see all buttons, text etc are white. But when opening the app they get the correct colors etc. Image of design view

1 Answer 1

1

Try changing the preview theme, the option is located right on top of the design panel: Android Studio

1
  • Yeah I found this a while ago, still thanks Nov 14, 2022 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.