Skip to content

Most visited

Recently visited

navigation
SwipeRefreshListFragment / res / menu /

main_menu.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
 Copyright 2014 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
 
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 color
22
        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 based
24
        off of your application's branding.
25
    -->
26
    <item
27
          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
                <item
34
                      android:id="@+id/menu_color_scheme_1"
35
                      android:title="@string/menu_color_scheme_1" />
36
 
37
                <item
38
                      android:id="@+id/menu_color_scheme_2"
39
                      android:title="@string/menu_color_scheme_2" />
40
 
41
                <item
42
                      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 area
51
        by setting showAsAction='never'. This is so that users which are not using touch input
52
        can still perform a refresh.
53
    -->
54
    <item
55
          android:id="@+id/menu_refresh"
56
          android:title="@string/menu_refresh"
57
          android:showAsAction="never" />
58
 
59
</menu>
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.