Best practices to use when targeting multiple screen resolutions on Android

前端 未结 4 902
滥情空心
滥情空心 2021-02-11 03:32

When designing an UI, we need to target many android mutations and various screen resolutions.

  • How to differentiate layout for 480 * 800 and 480 * 854 screen resolu
4条回答
  •  误落风尘
    2021-02-11 03:39

    I would suggest as much as possible use Relative calculations rather than Absolute. Avoid Hard coding of numbers for padding, margins etc. Simply give them a value in relation to desired property like Width, height of screen or any component.

提交回复
热议问题