本文介绍了更改动作条主页/向上箭头图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到,在新的谷歌应用程序,他们正在更新的小家/向上图标可以不是箭,但三个小线(至少在Android 4.2)。
I noticed that with the new Google apps, they are updating the little Home/Up icon to not be the arrow, but three little lines (at least on Android 4.2).
它们是如何实现这一点?我没有看到在动作条为它的API ...
How are they accomplishing this? I am not seeing an API for it in the ActionBar...
推荐答案
这就是所谓的<$c$c>ActionBarDrawerToggle$c$c>并且意欲将与<$c$c>DrawerLayout$c$c>.
你可以在这里找到一个样本实现 ,如果你只关心的图标:你可以从下载它们here.
It's called an ActionBarDrawerToggle
and is intended to be used with the DrawerLayout
.
You can find a sample implementation here and if you are only interested in the icons: you can download them from here.
这篇关于更改动作条主页/向上箭头图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!