It is a dedicated space located at top of an activity that indicates the app title or location of a user in the app. | It is a dedicated navigation or control element present at top of each screen of the application. | It is a ViewGroup that can be placed anywhere in the activity layout. |
It was used in Android devices running on OS version older than 3.0(Honeycomb). | It was released along with Android 3.0 (API -11) as the successor of AppBar. | Introduced in material design with the release of Android 5.0 i.e., lollipop(API - 21). |
Its position is fixed i.e., at the top of an application screen. | It is a part of the activity's opaque window decor, thus its position is hardcoded. | It is the generalized form of ActionBar that can be placed at any arbitrary level within the Component Tree hierarchy of an activity. |
Android system allows the presence of only one AppBar in an activity. | There can be only one ActionBar in an activity. Developers have the choice to show or hide the ActionBar. | Multiple Toolbar elements having a completely different appearance and the behavior can be defined within a single activity. A Toolbar can also be used as an ActionBar. |
Its prime purpose is to provide identity to the application. Further, it includes a Menu button that is used by developers to display relevant options/actions to the user. | Behaves as a regular AppBar but provides scope for customization. Developers can add application logo/icon, action menu items, overflow menu, etc. | Fewer lines of code are needed to make the same customization in Toolbar that is possible in ActionBar. Moreover, Toolbar provides more flexibility and control to the developers by which they can animate the elements or can apply reaction to scroll events. |
With the increase in demand for devices powered with the latest Android versions, developers migrated their design from the Menu button to ActionBar. | Features were added gradually, at the different API levels(15, 17, and 19). Thus it does not provide backward compatibility. | Uses material theme design and provides backward compatibility up to API 7(Android 2.1). |