Best practices to use when targeting multiple screen resolutions on Android

前端 未结 4 2198
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-11 03:30

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:57

    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.

提交回复
热议问题