getBinding().toolBar.setNavigationIcon((int) R.drawable.ic_menu_back);
<style name="ToolbarIconColor" parent="@style/ThemeOverlay.AppCompat.Light">
<item name="colorControlNormal">@color/white_no_night</item>
</style>
Drawable upArrow = ContextCompat.getDrawable(this, R.drawable.abc_ic_ab_back_material);
if(upArrow != null) {
upArrow.setColorFilter(ContextCompat.getColor(this, R.color.white), PorterDuff.Mode.SRC_ATOP);
if(getSupportActionBar() != null) {
getSupportActionBar().setHomeAsUpIndicator(upArrow);
}
网友评论