开发者

Resize android application

I created app in android, everywhere looks great, but on the phone which has resolution 540 x 960 I have black background on the right side and b开发者_如何学运维ottom,

How can I resize this ?


I guess you can get around this by setting your parent layout height and width to fill parent in all activities.

Or try this,

If you want uniform margin on all sides for all devices and screen sizes, then use marginRight, marginLeft, etc. in your xml and set 'x'dip where x is a number and dip is device independent pixel. This will give uniform margin for all devices, screen sizes and resolutions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜