我在 mikepenz 材料抽屉中使用自定义标题。我怎样才能得到标题的onClick。我可以使用 onDrawerItemClickListener 来获取自定义标题的点击事件吗?
result = new DrawerBuilder()
.withActivity(this)
.withSelectedItem(-1)
.withSliderBackgroundColorRes(R.color.white)
.withToolbar(toolbar)
.withStickyHeader(R.layout.nav_header)
.withTranslucentStatusBar(true)
.withDisplayBelowStatusBar(true)
.addDrawerItems(
//Drawer Items
).withOnDrawerItemClickListener(new Drawer.OnDrawerItemClickListener() {
@Override
public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {
})
.build();