Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Subdirectories in drawable directory

Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I would like to know why I watch the error cannot resolve symbol @drawable if I have an image in several resolutions and saved them in the following subfolders:

drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi, drawable-xxxhdpi

These subfolders are in drawable folder.

Here is the xml file:

usr_imagen is a png file that is stored in several resolution in the subfolders mentioned above. The error is fixed if I copy one image of the subfolders in the drawable folder.
But if only one file is in the drawable folder, all the resolutions of screens are not covered and the image won't be displayed right.

How can I display the image for all resolutions correctly?

Posts: 2268
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The folders drawable-hdpi and all others those you mentioned, should go under res not under drawable.
Nothing? Or something? Like this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic