[英]How do I get my Android Application to have this part of the user interface?
I want to add this to my user interface, i'm new to Android, so please be kind with the terminology :): 我想将其添加到我的用户界面中,因为我是Android的新手,所以请对术语保持友善:):
How do I make sections for the "SearchBox" and the "Btns"? 如何为“ SearchBox”和“ Btns”创建部分?
Thank you. 谢谢。
Since you're new to Android, the best way to learn it is to look at documentation and their examples. 由于您不熟悉Android,因此最好的学习方法是查看文档及其示例。 For your simple purpose, I would take a look at this LinearLayout
document . 为了您的简单目的,我将看一下LinearLayout
文档 。
In your case, the two different Views you need is EditText
for the search bar and Button
for, of course, the buttons. 在您的情况下,您需要的两个不同视图是搜索栏的EditText
和Button
的按钮。 It may be helpful in your case to use the android:layout_alignParentTop="true"
and android:layout_alignParentBottom="true"
tags for the "bars". 对于您的情况,将android:layout_alignParentTop="true"
和android:layout_alignParentBottom="true"
标记用于“酒吧”可能会有所帮助。 The row of buttons should be in their own LinearLayout
which you can orient in a horizontal direction, then put it inside the LinearLayout
. 按钮的行应位于其自己的LinearLayout
,您可以将其水平放置,然后将其放在LinearLayout
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.