我注意到,在新的谷歌应用程序,他们正在更新的小家/向上图标可以不是箭,但三个小线(至少在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...
这就是所谓的ActionBarDrawerToggle并且意欲将与DrawerLayout.
你可以在这里找到一个样本实现 ,如果你只关心的图标:你可以从下载它们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.