Skip to content
Advertisement

Tag: android-color

android.content.res.Resources$NotFoundException – /res/color/file.xml

I’m trying to implement the Color State List Resources in my android application, following Android developer guide Color State List Resource | Android Developers. So I created two resource files button_text.xml and button_background.xml in the directory res/color/ and referred them in the with @color/button_text and @color/button_background respectively in the activity_main.xml. Here’s the layout code: On running the App, I’m getting

Advertisement