📜  setHomeAsUpIndicator 设置色调 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:33.800000             🧑  作者: Mango

代码示例1
Drawable drawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_menu, null);
drawable = DrawableCompat.wrap(drawable);
DrawableCompat.setTint(drawable, Color.BLACK);
actionBar.setHomeAsUpIndicator(drawable);