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 8199813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:14:53+00:00 2026-06-07T06:14:53+00:00

Off the bat, version information: Eclipse: Juno Release, build 20120614-1722 Android: 4.4 ADT: 20.0.0v201206242043-391819

  • 0

Off the bat, version information:

  • Eclipse: Juno Release, build 20120614-1722
  • Android: 4.4
  • ADT: 20.0.0v201206242043-391819

There are many, many questions on SO regarding the various res/drawable folders (standard, drawable-hdpi, -mdpi, -ldpi, -xhdpi) and on whether it’s necessary to create the standard drawable folder if it doesn’t exist, where Android/ADT/Eclipse will look for the @drawable/* files, etc. However, my question seems to not have been answered thus far.

It’s a pretty striaghtforward problem. To put it simply, I placed a file name ‘starbg.png’ in my drawable-hdpi folder, then used the qualifier @drawable/starbg.png in a layout xml file. However, Eclipse is throwing an error:

error: Error: No resource found that matches the given name (at 'background' 
with value '@drawable/starbg.png').

Why? Unsure. I have tried the following solutions based on SO questions, all without success:

  • Cleaning the project (multiple times)
  • Creating a res/drawable folder (as one was not auto-generated by my version of ADT) and adding the image there
  • Copying the file into every single related folder
  • Renaming the file to star_bg.png
  • Restarting Eclipse

The project is not complicated. It’s an incredibly simple setup, with 2 views, one of which has nothing more than a LinearLayout with an android:background attribute (with layout and orientation info, of course), the other of which works like a charm.

So I’m stumped. Any help is hugely appreciated.

  • 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-07T06:14:54+00:00Added an answer on June 7, 2026 at 6:14 am

    when you specify your resource, it should not include the file extension. that is, a resource file,

    drawable/starbg.png
    

    should be referenced as,

    @drawable/starbg
    

    e.g.,

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:background="@drawable/starbg"
      ...>
    ...
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are two things to note right off the bat.... The shell script runs
Let me state off the bat that I'm not that familiar with ASP.Net MVC,
I was playing around and executed the following .bat @echo off mkdir %~dp0 pause
I have bat file like below with name myBat.bat 1) @echo off set CLASSPATH=%CLASSPATH%;C:\Documents
First off, let me define the end goal: I'd like to Wordpress (version 2.8)
Right off the bat, here is my Soap call implementation, minus the irrelevant bits.
So I'm putting a few boxes in my footer and right off the bat
I'm having difficulty using reinterpret_cast. Lets just say right off the bat that I'm
I am wising up and getting my internationalization act together. Right off the bat
I am following this tutorial: http://www.generation5.org/content/2001/sr00.asp?Print=1 Right off the bat it asks me to

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.