mohammed_sajid
mohammed_sajid

Reputation: 455

Cannot resolve theme reference in Android Studio

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

Upvotes: 1

Views: 342

Answers (1)

CHAN
CHAN

Reputation: 1576

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

Upvotes: 1

Related Questions