我想通过以下方式自定义我的导航抽屉:
而不是当前将菜单图标略微向左滑动的默认动画,我希望在抽屉打开时显示一个图标,在抽屉关闭时显示另一个图标。
任何想法/线索到我可以在哪里找到类似的东西?
我做了一些研究,能够找到操作栏图标,但不幸的是这不是我想要的。
难道这甚至不可能吗?
我猜应该在这里发生变化:
mDrawerToggle = new ActionBarDrawerToggle(
getActivity(), /* host Activity */
mDrawerLayout, /* DrawerLayout object */
R.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */
R.string.navigation_drawer_open, /* "open drawer" description for accessibility */
R.string.navigation_drawer_close /* "close drawer" description for accessibility */
)