Android Studio drawable folders

后端 未结 8 1698
野的像风
野的像风 2020-12-09 00:37

In Android Studio, I can\'t figure out where to put images to be used inside the app. The drawable folder isn\'t broken down into drawable-hdpi, drawable-ldpi, etc. I saw an

8条回答
  •  时光说笑
    2020-12-09 01:05

    Its little tricky in android studio there is no default folder for all screen size you need to create but with little trick.

    • when you paste your image into drawable folder a popup will appear to ask about directory
    • Add subfolder name after drawable like drawable-xxhdpi
    • I will suggest you to paste image with highest resolution it will auto detect for other size.. thats it next time when you will paste it will ask to you about directory

    i cant post image here so if still having any problem. here is tutorial..

    Drawable folder in android studio

提交回复
热议问题