Android supporting multiple resolution with multiple layout folder

前端 未结 4 1253
萌比男神i
萌比男神i 2020-12-01 20:40

Now I\'m supporting multiple resolution with multiple layout folders. I\'m using android development studio and I made 3 different folders.

layout
layout-lar         


        
4条回答
  •  半阙折子戏
    2020-12-01 20:49

    make sure you have given the corresponding drawables in drawable-xhdpi

    I don't know on what basis you're creating the App. But it's better to avoid creating layout for specific screen sizes.. Instead you would give the following:

    layout-small-port for devices like samsung galaxy y

    layout-normal-port for devices like galaxy s2

    layout-large-port for devices like nexus 7 which is 7 inch

    layout-xlarge-port for devices having more than 7 inch size

    If you specify the screen size, you can't support more number of devices

提交回复
热议问题