main_menu.xml

1
<?xml version="1.0" encoding="utf-8"?>2
<!--3
Copyright 2014 The Android Open Source Project4
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 at8
9
http://www.apache.org/licenses/LICENSE-2.010
11
Unless required by applicable law or agreed to in writing, software12
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 and15
limitations under the License.16
-->17
18
<menu xmlns:android="http://schemas.android.com/apk/res/android">19
20
<!--21
A color scheme menu item used for demonstrating the use of SwipeRefreshLayout's color22
scheme functionality. This kind of menu item should not be incorporated into your app,23
it just to demonstrate the use of color. Instead you should choose a color scheme based24
off of your application's branding.25
-->26
<item27
android:id="@+id/menu_color_scheme"28
android:title="@string/menu_color_scheme"29
android:showAsAction="ifRoom">30
<menu>31
<group android:checkableBehavior="single">32
33
<item34
android:id="@+id/menu_color_scheme_1"35
android:title="@string/menu_color_scheme_1" />36
37
<item38
android:id="@+id/menu_color_scheme_2"39
android:title="@string/menu_color_scheme_2" />40
41
<item42
android:id="@+id/menu_color_scheme_3"43
android:title="@string/menu_color_scheme_3" />44
45
</group>46
</menu>47
</item>48
49
<!--50
Refresh action item which should be presented in the Action Bar's overflow area51
by setting showAsAction='never'. This is so that users which are not using touch input52
can still perform a refresh.53
-->54
<item55
android:id="@+id/menu_refresh"56
android:title="@string/menu_refresh"57
android:showAsAction="never" />58
59
</menu>