Home | History | Annotate | Download | only in menu
      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       xmlns:app="http://schemas.android.com/apk/res-auto">
     19 
     20     <!-- Main items -->
     21     <group android:checkableBehavior="single">
     22         <item
     23                 android:id="@+id/navigation_item_1"
     24                 android:checked="true"
     25                 android:icon="@drawable/ic_android"
     26                 android:title="@string/navigation_item_1"/>
     27         <item
     28                 android:id="@+id/navigation_item_2"
     29                 android:icon="@drawable/ic_android"
     30                 android:title="@string/navigation_item_2"/>
     31         <item
     32                 android:id="@+id/navigation_item_3"
     33                 android:icon="@drawable/ic_android"
     34                 android:title="@string/navigation_item_3"
     35                 app:actionLayout="@layout/action_layout"/>
     36         <item
     37                 android:id="@+id/navigation_item_disabled"
     38                 android:icon="@drawable/ic_android"
     39                 android:title="@string/navigation_item_4"
     40                 android:enabled="false"/>
     41         <item
     42                 android:id="@+id/navigation_invisible"
     43                 android:icon="@drawable/ic_android"
     44                 android:title="@string/navigation_invisible"
     45                 android:visible="false"/>
     46     </group>
     47 
     48     <item
     49             android:id="@+id/navigation_subheader"
     50             android:title="@string/navigation_subheader">
     51         <menu>
     52             <item
     53                     android:id="@+id/navigation_sub_item_1"
     54                     android:icon="@drawable/ic_android"
     55                     android:title="@string/navigation_sub_item_1"/>
     56             <item
     57                     android:id="@+id/navigation_sub_item_2"
     58                     android:icon="@drawable/ic_android"
     59                     android:title="@string/navigation_sub_item_2"/>
     60             <item
     61                     android:id="@+id/navigation_sub_item_3"
     62                     app:actionLayout="@layout/action_layout_custom"/>
     63         </menu>
     64     </item>
     65 
     66     <group android:id="@+id/aligned_items">
     67         <item
     68                 android:id="@+id/navigation_with_icon"
     69                 android:icon="@drawable/ic_android"
     70                 android:title="@string/navigation_item_with_icon"/>
     71         <item
     72                 android:id="@+id/navigation_without_icon"
     73                 android:title="@string/navigation_item_without_icon"/>
     74     </group>
     75 
     76 </menu>
     77