Android的布局和定位的问题 [英] Android Layout and positioning issue
本文介绍了Android的布局和定位的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近我建立一个应用程序,现在我有一些问题,布局和定位。其实我建立我的布局,但是当我测试更大的屏幕上的一切倒塌,看我的应用程序并不好。什么是制作UI的最佳方法是什么?
recently i'm building an app and now i have some problem with layout and positioning. in fact i build my layout but when i test on bigger screen everything collapsed and look of my app is not good. what is the best way to produce UI?
推荐答案
参阅支持多种屏幕。
此外,在创建用户界面,尽量保持布局 RelativeLayout的
,避免硬编码为 layout_height
和 layout_width
让你的UI将适合在所有屏幕上。
快乐编码。
Also, while creating UI, try to keep the layout as RelativeLayout
and avoid hardcoding for layout_height
and layout_width
so that your UI will fit on all screens.
Happy Coding.
这篇关于Android的布局和定位的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文