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

后端 未结 3 826
甜味超标
甜味超标 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 14:35

    android:orderInCategory is an integer attribute that dictates the order in which the menu items will appear within the menu when it is displayed.

    
    
        
    
        
    
    
    
    • Menu items in ToolBar are arranged from left to right (or start to end in RTL mode) in the ascending order (i.e. 1,2,3 -> left to right).

    • Menu Items in Overflow menu are arranged from top to bottom in the ascending order (i.e. 1,2,3 -> top to bottom).

提交回复
热议问题