Android ActionBarDrawerToggle';s OpenDroperContentDescres和CloseDroperContentDescres

Android ActionBarDrawerToggle';s OpenDroperContentDescres和CloseDroperContentDescres,android,toolbar,actionbardrawertoggle,Android,Toolbar,Actionbardrawertoggle,似乎没有使用openDrawerContentDescRes和closeDrawerContentDescRes参数。下面是我的示例代码: actionBarDrawerToggle = new ActionBarDrawerToggle( this, // Activity drawerLayout, R.string.main_drawer_open, R.string.main_drawer_close ); drawerLayout.setDrawerLi

似乎没有使用
openDrawerContentDescRes
closeDrawerContentDescRes
参数。下面是我的示例代码:

actionBarDrawerToggle = new ActionBarDrawerToggle(
    this, // Activity
    drawerLayout,
    R.string.main_drawer_open,
    R.string.main_drawer_close
);
drawerLayout.setDrawerListener(actionBarDrawerToggle);
这个问题最初来自一位QA工程师,他无法找到从葫芦控制台引用导航抽屉开关的方法,所以这就是我试图解决的问题。我已经有一段时间没有接触过这段代码了,所以我的第一个想法是需要在视图上设置一个id或contentDescription,以便葫芦可以引用它。然而,令我惊讶的是,我已经在设置它们了

为了查看是否可以将问题隔离到葫芦上,我打开了Hierarchy Viewer,却发现该视图的contentDescription属性为null,请参阅

是否有其他人对此有问题和/或能够解决