multiple screen support in android

后端 未结 5 705
灰色年华
灰色年华 2020-11-28 15:49

I am working on a project and i have tested it on nexus one. its working there properly but I want that my project should be compatible with all screen sizes. How to do this

5条回答
  •  清歌不尽
    2020-11-28 16:15

    i am dealing with it this way and its working fine.....if any one has improved wayso do guide me

    Screen size 480x800

    layout-normal-hdpi-480x800

    drawable-normal-hdpi-480x800

    Screen size Galaxy Nexus--- though its size is 1280x720 but in actual due to system bar its dimension(screen size) differs

    layout-normal-xhdpi

    drawable-normal-xhdpi

    Screen size Note 5.3---

    layout-normal-xhdpi-1280x800

    drawable-normal-xhdpi-1280x800

    Screen size S3---

    layout-normal-xhdpi-1280x720

    drawable-normal-xhdpi-1280x720

    Screen size 7inch tab 2 supporting OS version 3 and above--- dont write dimension 1026x600 bsz in actual due to system bar its dimension(screen size) differs

    layout-large-mdpi

    drawable-large-mdpi

    Screen size 7inch tab p1000 etc supoorting os verion less than 3---

    layout-large-hdpi-1024x600

    drawable-large-hdpi-1024x600

    Screen size 1280x800 tab 10.1,10.2,note 10.1 etc--- you can add dimension if you want other wise it is fine

    layout-xlarge-mdpi

    drawable-xlarge-mdpi

提交回复
热议问题