如何获得棒棒堂"汉堡"作为标准的片段应用程序的抽屉图标(不使用AppCompat)? [英] How to get Lollipop "hamburger" as drawer icon in standard Fragment app (without use AppCompat)?

查看:120
本文介绍了如何获得棒棒堂"汉堡"作为标准的片段应用程序的抽屉图标(不使用AppCompat)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用AppCompat LIB(V21)我有动作条与汉堡图标,新的风格。能够获得同样的效果,但不使用AppCompat。我想有标准Holo.Light主题,以新的汉堡包(抽屉)的动作条图标。

When i use AppCompat lib (v21) i got ActionBar with new style of "hamburger" icon. Is possible to get the same behaviour, but not using AppCompat. I'd like to have standard Holo.Light theme with new "hamburger" (drawer) icon in ActionBar.

推荐答案

您可以从谷歌官方GitHub的账户得到你想要的资产

You can get the assets you want from the official github account of Google

下面的链接xxhdpi密度 ic_menu_white xxhdpi

Here the link for the xxhdpi density ic_menu_white xxhdpi

和设置与方法<一你的动作条href="https://developer.android.com/reference/android/app/ActionBar.html#setIcon(android.graphics.drawable.Drawable)"相对=nofollow>的setIcon()

这篇关于如何获得棒棒堂&QUOT;汉堡&QUOT;作为标准的片段应用程序的抽屉图标(不使用AppCompat)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆