Reputation: 455
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
In this image you see all buttons, text etc are white. But when opening the app they get the correct colors etc.
Upvotes: 1
Views: 342
Reputation: 1576
Try changing the preview theme, the option is located right on top of the design panel:
Upvotes: 1