I am working on this app. And using a transparent toolbar. I have added menu items on it.
As shown in the image
Now how should I shift the close button in the toolbar to the left side.
Here is the code
MainActivity.java
transparent_toolbar.inflateMenu(R.menu.menu_play_screen);
menu_play_screen.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_back"
android:orderInCategory="0"
android:title="@string/action_settings"
app:showAsAction="always"
android:icon="@drawable/ic_close_white_24dp"/>
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never" />
<item
android:id="@+id/action_playQueue"
android:orderInCategory="99"
android:title="Add to queue"
app:showAsAction="always"
android:icon="@drawable/ic_queue_music_white_24dp"
/>
</menu>