I can not find an example of how to create a simple activation with the toolbar at the top and put my type buttons to update, execute an http request and a couple more.

That is, not only standard buttons, but also / or custom ones too. And the menu button in the right corner. And another back arrow in the same toolbar .

How to do it?

  • screenshot of what you want? Offhand this is called ActionBar , no? - Vladyslav Matviienko
  • @metalurgus, I think, yes. But, not sure yet. - Oskar K.

2 answers 2

Here are simple examples, now there is a separate component toolbar instead of ActionBarActivity now AppCompatActivity. For extra buttons

http://habrahabr.ru/post/256643/

http://developer.android.com/intl/ru/guide/topics/ui/menus.html

  • it seems to be ... is it a toolbar or an actionbar? I may also need a menu in the right corner. - Oskar K.
  • 2
    In the new API, this is the toolbar in the old Actionbar, as for me, it is much more convenient to work with the toolbar. - Andrey Kabylin
  • one
    For the side menu in android-studio there is a template ready habrastorage.org/files/1b1/cf7/d5c/… - Andrey Kabylin
  • one
    Although the link can find the answer to the question, it is better to point out the most important thing here, and give the link as a source. If the page to which the link leads will be changed, the response link may become invalid. - Visman

In an Internet full of ready-made solutions. Here is an article from the habr: http://habrahabr.ru/post/256643/ Add the menu item in the same way as before, when working with ActionBar.