Navigation Drawer: Add Titles to Groups, Not Items

后端 未结 4 2126
梦如初夏
梦如初夏 2021-02-04 01:47

I have a standard Navigation Drawer, pre-created by Android Studio and want to populate it with number of groups. I started with this:



        
4条回答
  •  眼角桃花
    2021-02-04 02:17

    Here is well defined how to create menus.

    http://developer.android.com/guide/topics/ui/menus.html

    So in your case create your list in this order item->menu->group. that is to say:

     
         
             
                 
                
                    .   .   .
                    .   .   . 
    

提交回复
热议问题