How can i support multiple screen sizes in android with single xml layout file

后端 未结 9 2210
鱼传尺愫
鱼传尺愫 2021-02-06 12:54

I want to support my android screen in multiple screen sizes but i can do it with maintaining multiple xml layout file\'s

but according to requirement it i supposed to b

9条回答
  •  孤街浪徒
    2021-02-06 13:29

    Well that depends on your code

    1. Dont use Static values
    2. Try to use Wrap content
    3. Use Relative and Linear Layout Depends on your Requirement
    4. For Drawables Use every DPI Folder

    Look at these Links

    1)https://developer.android.com/training/multiscreen/screensizes.html

    2)How to support different screen size in android

    3)Supporting multiple screen size - Android

提交回复
热议问题