This year (2014) of the Google I/O is one of the most bright material design, and Google also from the "google I/O 2014", we also continue to see its updated Android app has been applied to the design interface. Of course, this design interface is really amazing, so that Android developers start to worry about the future of the app interface processing.
Fortunately, however, with previous Actionbar experience, Android also quickly provided the corresponding API to developers in the support library, this chapter introduces –toolbar, which is used to replace the control of the past Actionbar, and now Material design also has a unified name: App Bar, in the future Android app, to toolbar this component to do it.
1. Overview
Android 3.0 Android pushed ActionBar this control, and by the year 2013 Google began to aggressively push the so-called Android style, to gradually improve the past Android chaotic interface design, want to let end users as far as possible in and The Roid mobile phone has a consistent operating experience. The two largest packages used by ActionBar in the past are the Actionbarsherlock and the official AppCompat in support Library v 7.
Since there will be a Toolbar to introduce to you, it also means that the authorities have some degree of view that ActionBar limits the flexibility of Android app development and design, and the definition of the name in material Design: App bar. The next step is to show you how to use the toolbar control to make a basic app bar in Android app.
The procedure used in this article is available at Github.
Http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/1118/2006.html
Android Toolbar Detailed