效果图:
第一步 style 文件中默认的属性是 <style name="AppTheme"
parent="Theme.AppCompat.Light.DarkActionBar"> 在 style
文件中把默认使用的样式改成这个属性 <style name="AppTheme"
parent="Theme.AppCompat.Light.NoActionBar">
布局中设置 tooblar
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight=