Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - When attempting to add an image creates a blank image

I am using Android Studios 1.5

I am attempting to do something very simple: Add a large image to my project that I will be using as the background for my MainActivity. When I right click res->Add->Image Asset and choose "Action Bar and Tab Icons" and point it to my image, it renders completely blank rectangles as seen below:

enter image description here

What am I doing wrong? I've read several different pages and no one else has had this problem.

like image 959
SMKS Avatar asked Dec 19 '15 05:12

SMKS


1 Answers

Alright I figured out the answer.

You can't add it through the Android Studios interface (why is beyond my comprehension..). You need to go to the root folder of your project to ...\app\src\main\res\drawables and copy the image into all of the respective hdpi, mdpi, xhdpi, etc folders. Then clean your project and they will appear.

like image 126
SMKS Avatar answered Oct 13 '22 18:10

SMKS