Android Studio: Put menu buttons on the left in material design

i will start the topic by saying that i didn’t saw any question like mine.

So, my question is: I have a simple application to practice the material design layout style and I want to have a menu button in the left, to go backwards. This is the code of the menu, I don’t think that someone would need more:

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=".MainActivity">
<item
    android:id="@+id/action_settings"
    android:orderInCategory="100"
    android:title="@string/action_settings"
    app:showAsAction="never" />
<item android:id="@+id/navigate"
    android:title="@string/next"
    android:icon="@drawable/ic_arrow_back_white_24dp"
    android:orderInCategory="200"
app:showAsAction="always"/>


Source: css

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.