Skip to content Skip to sidebar Skip to footer

Is Modifying The Dp Size As Opposed To Pixels Recommended For Various Screen Sizes?

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 unique

Solution 1:

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?


Post a Comment for "Is Modifying The Dp Size As Opposed To Pixels Recommended For Various Screen Sizes?"