Android : Understanding drawable folder

前端 未结 6 487
梦谈多话
梦谈多话 2020-11-29 07:36

I have an image with dimensions 250*70 pixels under drawable folder (I\'m just starting out in Android development, so i created drawable folder in

6条回答
  •  盖世英雄少女心
    2020-11-29 08:16

    1) The reason behind the different drawable folders - to enhance user experience when using our app, by accomodating each device's screen density.

    2) "Where should I store ..." - ideally, you store an image with the appropriate size for each screen density that exist. If you are a beginner, just use one folder and don't worry about it now.

    4) Image scaling Here's a cool guide that helps you with image scaling inside the app: https://thoughtbot.com/blog/android-imageview-scaletype-a-visual-guide

    3) Links: https://material.io/tools/devices/ - list of all devices and densities

提交回复
热议问题