• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2015 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17<menu xmlns:android="http://schemas.android.com/apk/res/android">
18
19    <!-- Main items -->
20    <group android:checkableBehavior="single">
21        <item
22                android:id="@+id/navigation_item_1"
23                android:checked="true"
24                android:icon="@drawable/ic_android"
25                android:title="@string/navigation_item_1"/>
26        <item
27                android:id="@+id/navigation_item_2"
28                android:icon="@drawable/ic_android"
29                android:title="@string/navigation_item_2"/>
30        <item
31                android:id="@+id/navigation_item_3"
32                android:icon="@drawable/ic_android"
33                android:title="@string/navigation_item_3"/>
34        <item
35                android:id="@+id/navigation_item_disabled"
36                android:icon="@drawable/ic_android"
37                android:title="@string/navigation_item_4"
38                android:enabled="false"/>
39        <item
40                android:id="@+id/navigation_invisible"
41                android:icon="@drawable/ic_android"
42                android:title="@string/navigation_invisible"
43                android:visible="false"/>
44    </group>
45
46    <item
47            android:id="@+id/navigation_subheader"
48            android:title="@string/navigation_subheader">
49        <menu>
50            <item
51                    android:id="@+id/navigation_sub_item_1"
52                    android:icon="@drawable/ic_android"
53                    android:title="@string/navigation_sub_item_1"/>
54            <item
55                    android:id="@+id/navigation_sub_item_2"
56                    android:icon="@drawable/ic_android"
57                    android:title="@string/navigation_sub_item_2"/>
58        </menu>
59    </item>
60
61    <group android:id="@+id/aligned_items">
62        <item
63                android:id="@+id/navigation_with_icon"
64                android:icon="@drawable/ic_android"
65                android:title="@string/navigation_item_with_icon"/>
66        <item
67                android:id="@+id/navigation_without_icon"
68                android:title="@string/navigation_item_without_icon"/>
69    </group>
70
71</menu>
72