简体   繁体   中英

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 :): 在此处输入图片说明

How do I make sections for the "SearchBox" and the "Btns"?

Thank you.

Since you're new to Android, the best way to learn it is to look at documentation and their examples. For your simple purpose, I would take a look at this LinearLayout document .

In your case, the two different Views you need is EditText for the search bar and Button for, of course, the buttons. It may be helpful in your case to use the android:layout_alignParentTop="true" and android:layout_alignParentBottom="true" tags for the "bars". The row of buttons should be in their own LinearLayout which you can orient in a horizontal direction, then put it inside the LinearLayout .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM