I simply want a back button in left side of toolbar.But when i added with following code ,appear in right side of toolbar.how can i change to it to left side?
my code
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" tools:context="com.me.myapp.activities.Timer">
<item
android:id="@+id/backButton"
android:title="Back Button"
android:icon="@mipmap/back_icon"
app:showAsAction="ifRoom"></item>
</menu>
You just need
Back
icon on top left side of ToolBar then just configureToolbar
.As
ToolBar
menu items are totally depend on either your device is on RTL(Right-To-Left) support or not which are mainly used formenu items
and not forback key
.Moreover you can handle that back icon with