Как я могу изменить цвет анимированных значков ActionBarDrawerToggle в ActionBar, используя AppCompat-v7 (v21)? Я пробовал это, но не работает. Спасибо.
myActionBarActivity.java
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
mLeftDrawer = (LinearLayout) findViewById(R.id.left_drawer);
mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
R.string.drawer_open, R.string.drawer_close)
<сильные > значения /styles.xml
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">true</item>
<item name="color">@android:color/black</item>
</style>
UPDATE:, в моей теме была эта запись <item name="actionBarWidgetTheme">
, которая, вероятно, перекрывалась <item name="drawerArrowStyle">
. Я удалил его, и теперь все работает.