LinearLayout 中项目的位置
如何设计一个带有两个相邻按钮(水平)的 Android 应用程序,并且在这些按钮下方我有一个使用 LinearLayout 的文本视图(垂直)?无法让它发挥作用。
How do I design an android application with two buttons next to each other (horizontal) and below these buttons i have a textview (vertical) using LinearLayout? Can't get it to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这种情况下,使用relativelayout要好得多。您刚刚根据您相对于彼此的视图项目描述了您想要的结果。它的使用比您想象的要简单。
http://developer.android.com/resources/tutorials/views/hello -relativelayout.html
Far better to use the RelativeLayout in this case. You just described your desired result in terms of the items of your view relative to one another. It is simpler to use than you might think.
http://developer.android.com/resources/tutorials/views/hello-relativelayout.html