简体   繁体   English

如何让我的Android应用程序具有用户界面的这一部分?

[英]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. 在您的情况下,您需要的两个不同视图是搜索栏的EditTextButton的按钮。 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.

相关问题 如何在sirius-web脚本界面中获得零件? - How do I get a Part in the sirius-web scripting interface? 我如何将这种Azure配置的子域获取到我的android应用程序 - How do i get my subdomain for this azure configuration to my android application 如何登录Facebook并获取用户信息以从Android应用程序发送我的远程数据库 - How can I login with facebook and get user info to send my remote db from android application Android:如何使用接口仅允许访问对象成员的一部分 - Android: How do I allow access to only part of an objects members using an interface 如何获取用户安装Java应用程序的路径? - How do I get the path where the user installed my Java application? 如何使我的应用程序继承用户在install4j安装程序中选择的语言? - How do I get my application to inherit the language a user selects in the install4j installer? 如何获取运行我的Web应用程序的用户的Windows登录用户名? - How do I get the windows login username of a user running my web application? 如何使蓝色的位置点出现在我的Android应用程序中? - How do I get the blue location dot to appear in my Android application? 使用我的java应用程序中的apiClient调用GET Rest服务。 如果我有'&'作为输入参数的一部分。 它把它作为分离器 - Calling a GET Rest service using apiClient from my java application. If I have '&' as part of input param. Its taking it as separator 如何让我的乘法表有垂直线? - How do I get my multiplication table to have vertical lines?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM