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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:24:34+00:00 2026-05-23T12:24:34+00:00

In my drawable folders i have my icon image, and when testing i use

  • 0

In my drawable folders i have my icon image, and when testing i use it as a temp picture. I added 2 other images and a XML file and when ever the app loads the imageviews with the icon set to it has different images..

this is what it is meant to be be..
enter image description here

but this is what it is when i add other images to the drawable folder
enter image description here

And no, the names of the files are not the same.
The icon is called ‘icon.png’ – thats what it should be
instead it is ‘ic_menu_compose.png’ – a completely different name.

Also the files i’m adding are called:
‘buttonnormal.png’
‘buttonclicked.png’
and a XML file – ‘buttonselector.xml’

Even if i dont use these images any where within my app the problem still occurs.

Any help would be much appreciated. Thanks! 🙂

[EDIT]
enter image description here

  • 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-05-23T12:24:34+00:00Added an answer on May 23, 2026 at 12:24 pm

    Are you building your app inbetween tests?

    In eclipse: Project > Build Automatically (ticked) (this regenerates your R file)

    Are you referencing the image by a raw ID?

    setImageResource(324234234); WRONG

    setImageResource(R.drawable.blah); Right

    Are you using drawable image names that are already in use by the Android system: http://androiddrawableexplorer.appspot.com/

    Personally I would rename that images from “ic_menu_compose” to something like “icon_menu_compose_overwritten” just incase it is clashing and screwing up your R file.

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

Sidebar

Related Questions

I have three images in my drawable folder, and an XML Image Button code:
I have a picture in res/drawable directory: res/drawable/picture.jpeg. Can I dynamically update this picture.jpeg
I have some images in my drawable folder and they have landscape versions in
In my application i have used some custom buttons/icon,i have all images in the
I have a shape drawable in the drawable folder. Here is XML structure: <?xml
I have a jpg image in my android application drawable folder which resolution is
In my android project I have several images int the drawable folder with a
I have some image names stored in a database (Fully Qualified Like R.drawable. SomeImageName)
I have designed a launcher icon 48x48 pixels and placed it in my res/drawable
I have 3 drawable folders in my res folder. drawable-ldpi, drawable-mdpi, and drawable-hdpi. I

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.