jeudi 18 août 2016

Custom layout does not fit in MenuItem properly

I'm trying to put a Layout into a MenuItem, which works, but it seems that the layout is placed next to a space reserved for the icon and title.

This is my output:
[​IMG]

And this is the code used for the menu:

menu.xml:

Code:
  <menu >      <item          app:actionLayout="@layout/drawer_list_item"          android:id="@+id/nav_item_inbox"          android:visible="true"          />      <item android:title="Using a regular MenuItem"...  
Custom layout does not fit in MenuItem properly

from Android Authority Forums http://ift.tt/2bx7Wni
via IFTTT

Aucun commentaire:

Enregistrer un commentaire