Question Detail

Hello all,
I want something like below image 
text as menu how can I do it in android?

Image result for menu show text instead of icon android


Thread Reply

Anonymous

- 1 years ago

Try This
this is working for me.

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context="com.example.Me">

    <item
        android:id="@+id/action_green"
        android:orderInCategory="1"
        android:title="Green"
        app:showAsAction="always"
        />

    <item
        android:id="@+id/action_Blue"
        android:orderInCategory="1"
        android:title="Blue"
        app:showAsAction="always"
        />

    <item
        android:id="@+id/action_red"
        android:orderInCategory="1"
        android:title="Red"
        app:showAsAction="always"

        />
</menu>