You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/actionbarsherlock/samples/styled/res/menu/main_menu.xml

72 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<!-- custom -->
<item android:id="@+id/menu_search" android:showAsAction="ifRoom"
android:title="@string/action_label_search" />
<!-- icon -->
<item android:id="@+id/menu_refresh" android:showAsAction="ifRoom"
android:title="@string/action_label_refresh" android:icon="@drawable/ic_menu_refresh_holo_light" />
<!-- icon + text -->
<item android:id="@+id/menu_both" android:showAsAction="ifRoom|withText"
android:title="@string/action_label_both" android:icon="@drawable/ic_menu_star_holo_light" />
<!-- text -->
<item android:id="@+id/menu_text" android:showAsAction="ifRoom"
android:title="@string/action_label_text" />
<item android:id="@+id/menu_logo" android:showAsAction="ifRoom"
android:checkable="true" android:checked="false" android:title="@string/action_label_logo" />
<item android:id="@+id/menu_up" android:showAsAction="ifRoom"
android:checkable="true" android:checked="false" android:title="@string/action_label_up" />
<!-- Navigation submenu -->
<item android:id="@+id/menu_nav" android:title="@string/action_label_nav">
<menu>
<group android:id="@+id/menu_nav_group"
android:checkableBehavior="single">
<item android:id="@+id/menu_nav_tabs" android:title="@string/action_label_nav_tabs" android:checked="true" />
<item android:id="@+id/menu_nav_drop_down" android:title="@string/action_label_nav_drop_down" />
<item android:id="@+id/menu_nav_label" android:title="@string/action_label_nav_label" />
</group>
</menu>
</item>
<!-- action bar background submenu -->
<item android:id="@+id/menu_bak" android:title="@string/action_label_bak">
<menu>
<group android:id="@+id/menu_bak_group"
android:checkableBehavior="single">
<item android:id="@+id/menu_bak_none" android:title="@string/action_label_bak_none" android:checked="true" />
<item android:id="@+id/menu_bak_gradient" android:title="@string/action_label_bak_gradient" />
<!--<item android:id="@+id/menu_bak_9_patch" android:title="@string/action_label_image" />-->
</group>
</menu>
</item>
</menu>