我怎么能显示棒棒堂的工具栏图标应用程序?应用程序、工具栏、图标、棒棒

2023-09-12 02:48:59 作者:つ再度重相逢

我从 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.