What is the difference of a toolbar for an action bar?

2

I've researched a lot and found nothing that could explain this. Is there a difference or is it the same thing?

    
asked by anonymous 20.01.2017 / 15:42

1 answer

6

The ToolBar can be used for the same purpose as ActionBar: provide a App bar .

These are the main characteristics of each:

Action Bar

  • This is a special, dedicated type of View .
  • It is positioned at the top of the screen.
  • Any application, unless otherwise noted, has an ActionBar.
  • It consists of four parts: 1 - App Icon, 2 - View control, 3 - Action buttons, 4 - Action overflow
    fonte:Documentation Android - Action Bar

  • It'snoteasytocustomize.

ToolBar

  • Is a ViewGroup .
  • Can be placed anywhere in the layout
  • You may have an Action Menu associated with it.
  • It has no defined structure, a ViewGroup , can contain which type and number of Views
20.01.2017 / 16:24