我怎么能显示棒棒堂的工具栏图标应用程序? [英] how can i show icon app in Lollipop Toolbar?
本文介绍了我怎么能显示棒棒堂的工具栏图标应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从 ICS动作条的切换到的棒棒糖工具栏的后失踪的应用程序图标。可能吗? 请帮我。谢谢
mDrawerToggle.setDrawerIndicatorEnabled(假);
解决方案
使用应用程序图标和标题不鼓励在API 21,根据的材料设计。
无论如何,如果你想使用的图标,你可以使用的在工具栏setLogo 的方法。
I am missing an app icon after switching from ICS ActionBar to Lollipop toolbar. Is it possible? Please help me. Thanks
mDrawerToggle.setDrawerIndicatorEnabled(false);
解决方案
The use of application icon and a title is discouraged on API 21,according to Material Design.
Anyway if you want to use an icon, you can use the setLogo method in your Toolbar.
这篇关于我怎么能显示棒棒堂的工具栏图标应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文