1, Hidden Actionbar
Code settings: Requestwindowfeature (window.feature_no_title) //If the activity is inherited from Appcompatactivity, this code will be invalidated ....
Changes in style:
<style name="apptheme.base" parent="theme.appcompat " > <item name="windownotitle">true</item> <item name="windowactionbar">false</item> </ Style>
You may be able to use the following notation at the outset, AppCompat does not support the current theme features, or recommend using the SDK built-in Noactionbar style directly
<style name="apptheme.base" parent="theme.appcompat " > <item name="android:windownotitle">true</item> <item name="windowactionbar">false</item> </style>
2. Replace with toolbar
toolbar= (Toolbar) Findviewbyid (R.id.toolbar); Setsupportactionbar (toolbar);
3. Color Control Settings
Lazy, give a teleport.
Android Control Encyclopedia (ii)--toolbar