动态更改操作栏箭头的颜色

Change color of the actionbar's arrow dynamically

如何动态更改操作栏箭头的颜色? 我不想像 here 那样使用主题,因为我的操作栏的颜色也会动态变化。

可以吗?

您可以使用在 android API 18 级及更高级别中添加的 homeAsUpIndicator() 函数以编程方式轻松更改它。

ActionBar().setHomeAsUpIndicator(R.drawable.ic_yourindicator);