Android Studio Adding Images

I am new to Android studio. Can someone tell me what is the best way to add images like in eclipse? We have different folders, such as mdpi, xdpi. Can someone tell me what is the best way to add images and size?

 I am trying with new->image asset but is this right way? what should be image size 

.. as in eclipse, we add directly to res-> mdpi, xdpi

What size should i take? What is the type of asset in this tool that gives only 3 options: an icon, an action and a tab, a notification that needs to be accepted?

+1
source share
2 answers

Just copy the image:

enter image description here

and paste it into drawable:

enter image description here

You can also drag and drop.

, , . :

enter image description here

, res?

enter image description here

. :

drawable-mdpi for medium-density

drawable-hdpi for high-density

drawable-xhdpi for extra-high-density

drawable-xxhdpi for extra-extra-high-density

.

, , , . , , !

:

320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).  
480dp: a tweener tablet like the Streak (480x800 mdpi).  
600dp: a 7" tablet (600x1024 mdpi).  
720dp: a 10" tablet (720x1280 mdpi, 800x1280 mdpi, etc).
+5

, .

drawable-mdpi

drawable-hdpi

drawable-xhdpi

drawable-xxhdpi

0

Source: https://habr.com/ru/post/1610074/


All Articles