how can i show icon app in Lollipop Toolbar?

大城市里の小女人 提交于 2019-12-22 06:38:14

问题


I am missing an app icon after switching from ICS ActionBar to Lollipop toolbar. Is it possible? Please help me. Thanks

mDrawerToggle.setDrawerIndicatorEnabled(false);

回答1:


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.



来源:https://stackoverflow.com/questions/27768109/how-can-i-show-icon-app-in-lollipop-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!