Android: drawable resolutions

前端 未结 6 1557
温柔的废话
温柔的废话 2021-02-08 12:06

I\'ve been through this post (and others) as well as through the documentation about supporting different screen resolutions in Android, but I couldn\'t find a clear answer to a

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-08 12:36

    Unless you have some reason to target pre-Donut devices (now only 4% of the devices according to http://developer.android.com/resources/dashboard/platform-versions.html), then you should put your bitmaps in one of the -Xdpi directories. The generic "drawable" directory is a synonym of "drawable-mdpi" for compatibility reasons, but a modern well-written app should be putting its drawables in a directory matching the density they are designed for.

提交回复
热议问题