13
Cómo configurar el menú en la barra de herramientas en Android
¡Quiero usar en ToolBarlugar de ActionBar, pero no me muestre el menú en la barra de herramientas! Quiero establecer un menú como Actualizar o Configurar botones en ActionBar. Código Toolbar.xml: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" app:navigationContentDescription="@string/abc_action_bar_up_description" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:title="Main Page" android:gravity="center"/> Código MainPage.java: public class …