当设置为向上箭头模式时,更改Android ActionBarDrawerToggle的颜色

当设置为向上箭头模式时,更改Android ActionBarDrawerToggle的颜色,android,navigation-drawer,android-toolbar,android-togglebutton,Android,Navigation Drawer,Android Toolbar,Android Togglebutton,在我的应用程序中,我使用的是一个带有工具栏的NoActionBar主题及其ActionBarDrawerToggle,它打开抽屉菜单在应用程序中导航。在一个嵌套在抽屉目的地中的片段中,我进行了切换,从汉堡按钮切换到向上按钮,但向上箭头颜色没有获得我为切换设置的颜色 toolbarDrawerToggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.drawer_open_description, R.string.d

在我的应用程序中,我使用的是一个带有工具栏的NoActionBar主题及其ActionBarDrawerToggle,它打开抽屉菜单在应用程序中导航。在一个嵌套在抽屉目的地中的片段中,我进行了切换,从汉堡按钮切换到向上按钮,但向上箭头颜色没有获得我为切换设置的颜色

toolbarDrawerToggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.drawer_open_description, R.string.drawer_close_description)

toolbarDrawerToggle.drawerArrowDrawable.color = getColor(R.color.myColor) // set the toggle color
我还想在开关中添加当抽屉菜单打开,汉堡包切换到箭头时发生的相同动画,箭头关闭菜单