What is orderInCategory in ActionBar menu item & why it is use for..?

后端 未结 3 821
甜味超标
甜味超标 2020-12-02 14:20

Im working on action menu item and its over flow item this is my main_menu.xml




        
3条回答
  •  离开以前
    2020-12-02 15:01

    android:orderInCategory is actually useful in two ways.

    1. For menu items in ActionBar. Items will appear from left to right in ActionBar depending on the ascending order.

    2. For menu items in overflow menu. Overflow menu items will be displayed from top to bottom depending upon the ascending order you have specified.

提交回复
热议问题