|
1 | 1 | <menu xmlns:android="http://schemas.android.com/apk/res/android"> |
2 | | - |
3 | | - <item |
4 | | - android:id="@+id/action_home" |
5 | | - android:icon="@drawable/ic_home_black_24dp" |
6 | | - android:title="@string/navigation_item_home"/> |
7 | | - |
8 | | - <item |
9 | | - android:id="@+id/action_nearby" |
10 | | - android:icon="@drawable/ic_location_black_24dp" |
11 | | - android:title="@string/navigation_item_nearby"/> |
12 | | - |
13 | | - <item |
14 | | - android:id="@+id/action_notifications" |
15 | | - android:icon="@drawable/ic_notifications_black_24dp" |
16 | | - android:title="@string/navigation_item_notification"/> |
17 | | - |
18 | | - <item |
19 | | - android:id="@+id/action_about" |
20 | | - android:icon="@drawable/ic_info_outline_black_24dp" |
21 | | - android:title="@string/navigation_item_about"/> |
22 | | - |
23 | | - <item |
24 | | - android:id="@+id/action_settings" |
25 | | - android:icon="@drawable/ic_settings_black_24dp" |
26 | | - android:title="@string/navigation_item_settings"/> |
27 | | - |
28 | | - <item |
29 | | - android:id="@+id/action_introduction" |
30 | | - android:icon="@drawable/ic_help_black_24dp" |
31 | | - android:title="@string/navigation_item_info"/> |
32 | | - |
33 | | - <item |
34 | | - android:id="@+id/action_feedback" |
35 | | - android:icon="@drawable/ic_feedback_black_24dp" |
36 | | - android:title="@string/navigation_item_feedback"/> |
37 | | - |
| 2 | + <group |
| 3 | + android:id="@+id/drawer_main"> |
| 4 | + <item |
| 5 | + android:id="@+id/action_home" |
| 6 | + android:icon="@drawable/ic_home_black_24dp" |
| 7 | + android:title="@string/navigation_item_home" /> |
| 8 | + |
| 9 | + <item |
| 10 | + android:id="@+id/action_nearby" |
| 11 | + android:icon="@drawable/ic_location_black_24dp" |
| 12 | + android:title="@string/navigation_item_nearby" /> |
| 13 | + </group> |
| 14 | + <group |
| 15 | + android:id="@+id/drawer_account" |
| 16 | + > |
| 17 | + <item |
| 18 | + android:id="@+id/action_notifications" |
| 19 | + android:icon="@drawable/ic_notifications_black_24dp" |
| 20 | + android:title="@string/navigation_item_notification" /> |
| 21 | + |
| 22 | + |
| 23 | + <item |
| 24 | + android:id="@+id/action_settings" |
| 25 | + android:icon="@drawable/ic_settings_black_24dp" |
| 26 | + android:title="@string/navigation_item_settings" /> |
| 27 | + |
| 28 | + </group> |
| 29 | + <group |
| 30 | + android:id="@+id/drawer_contact" |
| 31 | + > |
| 32 | + <item |
| 33 | + android:id="@+id/action_about" |
| 34 | + android:icon="@drawable/ic_info_outline_black_24dp" |
| 35 | + android:title="@string/navigation_item_about" /> |
| 36 | + <item |
| 37 | + android:id="@+id/action_introduction" |
| 38 | + android:icon="@drawable/ic_help_black_24dp" |
| 39 | + android:title="@string/navigation_item_info" /> |
| 40 | + |
| 41 | + <item |
| 42 | + android:id="@+id/action_feedback" |
| 43 | + android:icon="@drawable/ic_feedback_black_24dp" |
| 44 | + android:title="@string/navigation_item_feedback" /> |
| 45 | + |
| 46 | + |
| 47 | + </group> |
| 48 | + |
| 49 | + <group |
| 50 | + android:id="@+id/drawer_logout" |
| 51 | + > |
38 | 52 | <item |
39 | 53 | android:id="@+id/action_logout" |
40 | 54 | android:icon="@drawable/ic_exit_to_app_black_24dp" |
41 | | - android:title="@string/navigation_item_logout"/> |
42 | | - |
| 55 | + android:title="@string/navigation_item_logout" /> |
| 56 | + </group> |
43 | 57 | </menu> |
0 commit comments