How and where to add image by Android Studio?

2

Which folder put the images I want to add in my application? Na drawable?

And how to add via Android Studio ?

    
asked by anonymous 04.04.2017 / 21:38

1 answer

3

Using Android Studio 1.5:

  • Right click on res, new Image Asset
  • In the resource type, choose Action Bar and Tab Icons
  • Choose the path of the image
  • Give the resource a name for your image
  • Next
  • Finish

Using Android Studio 2.2 or higher:

  • Right click on res, new Image Asset
  • In the Icon type, choose Action Bar and Tab Icons
  • In the Resource Type, select Image
  • In the path choose the path of your image
  • Next
  • Finish

The image will be saved in the / res / drawable folder

    
04.04.2017 / 21:45