如何更改actionbardrawertoggle图标,android?

时间:2015-04-30 06:27:38

标签: android navigation-drawer actionbardrawertoggle

在我的活动中,我想更改抽屉切换图标 我有我的工具栏

 <android.support.v7.widget.Toolbar
    android:id="@+id/tool_bar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="@color/appColor"
    android:minHeight="?attr/actionBarSize"
    app:theme="@style/MyDarkToolbarStyle">


</android.support.v7.widget.Toolbar>

这是工具栏主题

 <style name="MyDarkToolbarStyle" parent="Widget.AppCompat.Toolbar">
    <item name="android:gravity">center_vertical</item>
    <!--<item name="popupTheme">@style/PopupMenuStyle</item>-->
    <item name="actionButtonStyle">@style/MyActionButtonStyle</item>

</style>

这是活动主题

 <style name="MyMaterialTheme.Base" parent="Theme.AppCompat">
    <item name="android:windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="colorPrimary">@color/ColorPrimary</item>
    <item name="colorPrimaryDark">@color/ColorPrimaryDark</item>
</style>

0 个答案:

没有答案