Reputation: 419
I have the below toolbar:
<androidx.appcompat.widget.Toolbar
android:id="@+id/my_account_top_bar"
android:layout_width="match_parent"
android:layout_height="60dp"
android:orientation="horizontal"
app:title="My Account"
android:theme="@style/ToolbarTheme"/>
I want the back button to alternate between light/dark colours when switching between Day and Night modes, but setting the theme as above did not help, as it would for android.support.v7.widget.Toolbar
.
Any ideas how I can change the back button colour using androidx?
Upvotes: 0
Views: 231
Reputation: 15433
You can use homeAsUpIndicator
to change back button in your Theme like below:
<item name="homeAsUpIndicator">@drawable/ic_left_arrow</item>
Upvotes: 2