Question

i have added menues in my menue item in xml.now i want to keep the home icon only at the very right of the action bar and the others will remain in three dots and when someone clicks them they will collapse down in a group. that is my xml

<item
    android:id="@+id/action_settings"
    android:orderInCategory="100"
    android:showAsAction="never"
    android:title="@string/action_settings"/>
<item android:id="@+id/Homebar"
    android:title="Home"
    android:orderInCategory="1"
    android:showAsAction="always"
    />
<item android:id="@+id/infobar"
    android:title="Info"
    android:orderInCategory="2"
    android:showAsAction="collapseActionView"
    />
<item android:id="@+id/servicebar"
    android:title="Services"
    android:orderInCategory="3"
    android:showAsAction="always"
    />
<item android:id="@+id/onlinetoolsbar"
    android:title="Online tools"
    android:orderInCategory="4"
    android:showAsAction="always"
    />
<item android:id="@+id/mediacenterbar"
    android:title="Media center"
    android:orderInCategory="5"
    android:showAsAction="always"
    />

Was it helpful?

Solution

i solved it by adding an icon at the very right of the top and put the drop down on action.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top