Menu Android

Luis_dmLuis_dm USMember ✭✭✭
edited March 2017 in Xamarin.Android

How I can do menu without icon?

example Help & Feedback:

Answers

  • KrayemKrayem LYMember ✭✭

    Give it a try!
    in your menu file
    this is an item with icon
    <item android:id="@+id/item1" android:icon="@drawable/icon" android:title="item1" />
    and this one w/o icon
    <item android:id="@+id/item2" android:title="item2" />

  • Luis_dmLuis_dm USMember ✭✭✭

    I had already tried so, but I get a blank space and do not know how to delete

  • KrayemKrayem LYMember ✭✭

    Did you tried to add items group?
    <group> <item android:id="@+id/i1" android:icon="@drawable/itm1" android:title=""item1 /> <item android:id="@+id/i2" android:icon="@drawable/itm2" android:title="item2" /> </group> <group> <item android:id="@+id/i3" android:title=""item3 /> <item android:id="@+id/i4" android:title="item4" /> </group>

    another possible solution : https://stackoverflow.com/questions/42691758/android-navigation-drawer-item-without-icon-display-text-only

Sign In or Register to comment.