Is modifying the dp size as opposed to pixels recommended for various screen sizes?

后端 未结 1 1267
名媛妹妹
名媛妹妹 2021-01-28 04:42

Say, for an ImageButton on screen A (240X320: ldpi) and screen B (720X1280: xhdpi), is it recommended to manually change the dp (layout-width and height) size of it in each uniq

相关标签:
1条回答
  • 2021-01-28 05:23

    It is entirely up to you if you want to change the layout width and height (in dp) of an imageButton. There is certainly nothing wrong with setting width and height of an imageButton or any UI element for that matter, in each unique layout resource file for various screens. Did you have specific code you wanted to get feedback about?

    0 讨论(0)
提交回复
热议问题