Menu with custom layout

0

I need to create custom menu so it looks like this:

ThenIcreatedan.xmlinres/layout/layout_menuitem.xmltoserveasmyapp'smenu.

<TextViewandroid:id="@+id/text_minha_conta"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/minha_conta"
    android:background="@color/white"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:padding="10dp"
    />
<TextView
    android:id="@+id/text_meus_pedidos"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/meus_pedidos"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:padding="10dp"
    />
<TextView
    android:id="@+id/text_notificacoes"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/notificacoes"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:padding="10dp"
    />
<TextView
    android:id="@+id/text_fale_conosco"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/fale_conosco"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:padding="10dp"
    />
<TextView
    android:id="@+id/text_politica"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/politica"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:padding="10dp"
    />
<TextView
    android:id="@+id/text_sobre"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/sobre"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:padding="10dp"
    />
<TextView
    android:id="@+id/text_sair"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/sair"
    android:textSize="20sp"
    android:textColor="@color/apptheme_color"
    android:padding="10dp"
    />
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <ImageView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="0.5"
        android:src="@drawable/facebook_icon_small"/>
    <ImageView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="0.5"
        android:src="@drawable/email_icon_small"/>
</LinearLayout>

But I can not do the same layout for the menu, and I also can not get the layout_menuitem as the application's menu.

    
asked by anonymous 31.08.2015 / 19:36

0 answers