~vono22/narau/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!-- From Samples ApiDemos/res/values/attrs.xml -->
    <declare-styleable name="FragmentArguments">
        <attr name="header" format="reference" />
    </declare-styleable>

    <!-- From Android 1.6 source code frameworks/base/core/res/res/values/attrs.xml -->


    <!-- **************************************************************** -->
    <!-- Menu XML inflation. -->
    <!-- **************************************************************** -->
    <eat-comment />

    <!-- Base attributes that are available to all Menu objects. -->
    <declare-styleable name="Menu"></declare-styleable>

    <!-- Base attributes that are available to all groups. -->
    <declare-styleable name="MenuGroup">

        <!-- The ID of the group. -->
        <attr name="id" format="integer" />

        <!--
             The category applied to all items within this group.
             (This will be or'ed with the orderInCategory attribute.)
        -->
        <attr name="menuCategory">

            <!-- Items are part of a container. -->
            <enum name="container" value="0x00010000" />
            <!-- Items are provided by the system. -->
            <enum name="system" value="0x00020000" />
            <!-- Items are user-supplied secondary (infrequently used). -->
            <enum name="secondary" value="0x00030000" />
            <!-- Items are alternative actions. -->
            <enum name="alternative" value="0x00040000" />
        </attr>

        <!--
             The order within the category applied to all items within this group.
             (This will be or'ed with the category attribute.)
        -->
        <attr name="orderInCategory" format="integer" />

        <!-- Whether the items are capable of displaying a check mark. -->
        <attr name="checkableBehavior">

            <!-- The items are not checkable. -->
            <enum name="none" value="0" />
            <!-- The items are all checkable. -->
            <enum name="all" value="1" />
            <!--
                 The items are checkable and there will only be a single checked item in
                 this group.
            -->
            <enum name="single" value="2" />
        </attr>

        <!-- Whether the items are shown/visible. -->
        <attr name="visible" format="boolean" />

        <!-- Whether the items are enabled. -->
        <attr name="enabled" format="boolean" />
    </declare-styleable>

    <!-- Base attributes that are available to all Item objects. -->
    <declare-styleable name="MenuItem">

        <!-- The ID of the item. -->
        <attr name="id" />

        <!--
             The category applied to the item.
             (This will be or'ed with the orderInCategory attribute.)
        -->
        <attr name="menuCategory" />

        <!--
             The order within the category applied to the item.
             (This will be or'ed with the category attribute.)
        -->
        <attr name="orderInCategory" />

        <!-- The title associated with the item. -->
        <attr name="title" format="string" />

        <!--
             The condensed title associated with the item.  This is used in situations where the
             normal title may be too long to be displayed.
        -->
        <attr name="titleCondensed" format="string" />

        <!--
             The icon associated with this item.  This icon will not always be shown, so
             the title should be sufficient in describing this item.
        -->
        <attr name="icon" format="reference" />

        <!--
             The alphabetic shortcut key.  This is the shortcut when using a keyboard
             with alphabetic keys.
        -->
        <attr name="alphabeticShortcut" format="string" />

        <!--
             The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
             keyboard.
        -->
        <attr name="numericShortcut" format="string" />

        <!-- Whether the item is capable of displaying a check mark. -->
        <attr name="checkable" format="boolean" />

        <!--
             Whether the item is checked.  Note that you must first have enabled checking with
             the checkable attribute or else the check mark will not appear.
        -->
        <attr name="checked" format="boolean" />

        <!-- Whether the item is shown/visible. -->
        <attr name="visible" />

        <!-- Whether the item is enabled. -->
        <attr name="enabled" />
    </declare-styleable>
    <declare-styleable name="MenuView">

        <!-- Default appearance of menu item text. -->
        <attr name="itemTextAppearance" format="reference" />
        <!-- Default horizontal divider between rows of menu items. -->
        <attr name="horizontalDivider" format="reference" />
        <!-- Default vertical divider between menu items. -->
        <attr name="verticalDivider" format="reference" />
        <!-- Default background for the menu header. -->
        <attr name="headerBackground" format="color|reference" />
        <!-- Default background for each menu item. -->
        <attr name="itemBackground" format="color|reference" />
        <!-- Default animations for the menu -->
        <attr name="windowAnimationStyle" format="reference" />
        <!-- Default disabled icon alpha for each menu item that shows an icon. -->
        <attr name="itemIconDisabledAlpha" format="float" />
    </declare-styleable>
    <declare-styleable name="IconMenuView">

        <!-- Defines the height of each row. -->
        <attr name="rowHeight" format="dimension" />
        <!-- Defines the maximum number of rows displayed. -->
        <attr name="maxRows" format="integer" />
        <!-- Defines the maximum number of items per row. -->
        <attr name="maxItemsPerRow" format="integer" />
        <!-- Defines the maximum number of items to show. -->
        <attr name="maxItems" format="integer" />
        <!-- 'More' icon -->
        <attr name="moreIcon" format="reference" />
    </declare-styleable>

</resources>