Is there any tutorial easy to understand to create a toolbar with the home button aligned to the left and the log out button aligned to the right?
I am using menu type .xml files to do it, but I am not able to align the buttons as I want.
My .xml is:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/etxera"
android:icon="@drawable/etxera_fondo"
android:title="Hasierara"
app:showAsAction="always" />
<item android:id="@+id/saioa_itxi"
android:icon="@drawable/saioaitxi"
android:title="saioa itxi"
app:showAsAction="ifRoom" />
</menu>
Thanks for support!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…