Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8212747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:52:11+00:00 2026-06-07T10:52:11+00:00

Resources$NotFoundException: File res/color/dark.xml from drawable resource I have that error. I tried clean project.

  • 0

Resources$NotFoundException: File res/color/dark.xml from drawable resource

I have that error. I tried clean project. I can see “dark” in “R” file. I can use it in project: I mean autocomplete working well, but when I turn on app on emulator there is this error. There is how I use it:

songList.setSelector(R.color.dark);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:52:14+00:00Added an answer on June 7, 2026 at 10:52 am

    The correct way to use setSelector() is:

    Create a xml in res/drawable

    For example, let res/drawable/selector.xml

    <?xml version="1.0" encoding="utf-8"?>
       <selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_selected="true"   
        android:drawable="@color/black" />
    </selector>
    

    Then declare black in your res\values\strings.xml

    <color name="black">#000000</color>
    

    Then set selector as

    songList.setSelector( R.drawable.selector);
    

    Note: Answer ideas taken from this post.

    EDIT:
    Try cleaning your project in Eclipse and re-starting Eclipse.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

LOGCAT 04-03 20:59:46.189: E/AndroidRuntime(362): android.content.res.Resources$NotFoundException: String resource ID #0x0 04-03 20:59:46.189: E/AndroidRuntime(362): at android.content.res.Resources.getText(Resources.java:201)
I published app at the Market and I keep getting error: Exception class: android.content.res.Resources$NotFoundException
I have 2 resources, one being a nested resource of another: parent_resource and child_resource
I have a custom drawable rounded_corner.xml: <?xml version=1.0 encoding=UTF-8?> <shape xmlns:android=http://schemas.android.com/apk/res/android android:shape=rectangle> <gradient android:startColor=#FFFFFF
I have a list of values in my XML file which I would like
Exception is : Resources.NotFoundException 11-30 17:38:17.843: I/class fyp.proj.crud.DisplayProjects$ListAdapter(967): android.content.res.Resources$NotFoundException: String resource ID #0x9 Firstly,
How to inflate particular View from separate xml file. Is it possible? When I`m
I've got an Android app that uses both drawables from its own resources folder
iPhone resources by default show up in a Resources group that's visible in the
Windows resources have a FileVersion and a ProductVersion. In native development environment(eg. Win32 app,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.