0

I want to add this to my user interface, i'm new to Android, so please be kind with the terminology :): enter image description here

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

Thank you.

RRUZ
  • 134,889
  • 20
  • 356
  • 483
Zukky
  • 237
  • 1
  • 2
  • 8
  • Any good [android UI tutorial](http://google.com/?q=android+ui+tutorial) will teach you what you need to know. For the map, look up a tutorial on using the google maps api with android. – jmcdale Dec 05 '11 at 21:08

1 Answers1

0

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.

Brian
  • 7,955
  • 16
  • 66
  • 107
  • Great answer, makes a lot of sense. I understand all the layouts pretty much but I thought there might be some sort of code that sorts that out for you? Like for Android 3.0 - ActionBar()? But i'm coding in Android 2.2, is there any code that would do something like ActionBar()? I don't find it a problem doing this method, just enquiring. – Zukky Dec 05 '11 at 21:17
  • I think I know what you're talking about. `ActionBar` is probably something for Android 3.0 because it's quite useful for tablet interfaces. The closest thing I can vaguely think of that I've used before for a similar style is a ButtonBar. It's not really view, but just a style you can add to make the bars stand out. Check here for more information: http://stackoverflow.com/a/3795949/394933. – Brian Dec 05 '11 at 21:47