1

When I'm trying adding images to my app, the size of the image is always small - like a little icon. How can I change it? The original size of my image is big. I have no idea why the Android Studio makes it small.

When I add the image I add by these steps:

RightClick on Res(folder) --> new --> Image Asset --> I choose Launcher Icons.

And when I add the image to an ImageView I can't see an option which allows me to change the size of the image.

enter image description here

Community
  • 1
  • 1
Gilad Neiger
  • 643
  • 1
  • 6
  • 15
  • change the directory to res -> drawables – M.Waqas Pervez Jul 01 '16 at 07:37
  • Maybe it's a problem with your `Layout` file design... – Aspicas Jul 01 '16 at 07:37
  • Place your images in drawable or mipmaps folder with corresponding sizes http://android-developers.blogspot.in/2014/10/getting-your-apps-ready-for-nexus-6-and.html – Sathish Kumar Jul 01 '16 at 07:39
  • mmm `mipmap` it's only for icons if I understand correctly in google developers... – Aspicas Jul 01 '16 at 07:40
  • I've placed my images in a mipmap folder. So how do I upload a large sized image? – Gilad Neiger Jul 01 '16 at 07:43
  • Really, read me... The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before. @olash12345 – Aspicas Jul 01 '16 at 07:45
  • you need to place your image resource file in drawables. http://stackoverflow.com/questions/28065267/mipmap-vs-drawable-folders – karan Jul 01 '16 at 07:46
  • if you think that mipmap is only for icons, then please refactor and move the image to drawable folder and check it – Ankush Bist Jul 01 '16 at 07:46
  • Simply use drawable resources folder, mipmap used for holding your launcher icons only. – Kaushal Kishor Jul 01 '16 at 08:01
  • @Aspicas ok, But when I try adding images to the drawable folder (right click, new, image asset) , the Android Studio adds the image automatically to the mipmap folder for some reason... – Gilad Neiger Jul 01 '16 at 08:05

2 Answers2

1

You should add your Images to drawable folder of your Project. Image Asset tool is for adding images for icons (Action bar icons, Launcher Icon or Notification Icons), refer to this link to understand what is Asset Image tool. Also bare in mind that a good practise is to use many same images with different resolutions (mdpi - hdpi - xdpi - xxdpi - xxxdpi) in order to support different resolutions for android devices, you can refer to this link.

VasFou
  • 1,561
  • 1
  • 22
  • 39
0

You should place your image in the drawable folder, but follow the same steps besides that. It should resolve your issue.

Chris Deck
  • 146
  • 2
  • 9