Android: Handling images size for multiple screens

前端 未结 6 1504
情歌与酒
情歌与酒 2021-01-05 17:51

I find it really hard to handle images with Android, I think it\'s the hardest part of Android development...

1) I have an image, I want it to be the background of m

6条回答
  •  [愿得一人]
    2021-01-05 18:00

    I think if you want use Bitmap as your background, there are some ways of solution:

    1. Design several size of image for different devices.(drawable-hdpi, drawable-xhdpi...)
    2. Use different layout and put them into different resource package that using qualifiers.(layout-sw600dp...)

提交回复
热议问题