summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/values/attrs.xml
blob: 0a75f98847dc10620bade11125f7be075a998750 (plain)
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- Theme level attributes -->
    <declare-styleable name="GeckoTheme">

        <!-- Style for GeckoMenu ListView -->
        <attr name="geckoMenuListViewStyle" format="reference"/>

        <!-- Style for MenuItemActionBar -->
        <attr name="menuItemActionBarStyle" format="reference"/>

        <!-- Style for MenuItemActionBar -->
        <attr name="menuItemActionModeStyle" format="reference"/>

        <!-- Style for MenuItemSwitcherLayout -->
        <attr name="menuItemSwitcherLayoutStyle" format="reference"/>

        <!-- Style for MenuItemDefault -->
        <attr name="menuItemDefaultStyle" format="reference"/>

        <!-- Style for MenuItemActionBar when shown in SecondaryActionBar -->
        <attr name="menuItemSecondaryActionBarStyle" format="reference"/>

        <!-- Default style for the BookmarksListView -->
        <attr name="bookmarksListViewStyle" format="reference" />

        <!-- Default style for the TopSitesGridItemView -->
        <attr name="topSitesGridItemViewStyle" format="reference" />

        <!-- Styles for dynamic panel grid views -->
        <attr name="panelIconViewStyle" format="reference" />

        <!-- Style for the TabsGridLayout -->
        <attr name="tabGridLayoutViewStyle" format="reference" />

        <!-- Default style for the TopSitesGridView -->
        <attr name="topSitesGridViewStyle" format="reference" />

        <!-- Default style for the TopSitesThumbnailView -->
        <attr name="topSitesThumbnailViewStyle" format="reference" />

        <!-- Default style for the HomeListView -->
        <attr name="homeListViewStyle" format="reference" />

    </declare-styleable>

    <declare-styleable name="MenuItem">
        <attr name="android:id"/>
        <attr name="android:orderInCategory"/>
        <attr name="android:title"/>
        <attr name="android:icon"/>
        <attr name="android:checkable"/>
        <attr name="android:checked"/>
        <attr name="android:visible"/>
        <attr name="android:enabled"/>
        <attr name="android:showAsAction"/>
    </declare-styleable>

    <declare-styleable name="MenuItemDefault">
        <attr name="state_more" format="boolean"/>
    </declare-styleable>

    <declare-styleable name="TabThumbnailWrapper">
        <attr name="state_recording" format="boolean"/>
    </declare-styleable>

    <declare-styleable name="FlowLayout">
        <attr name="spacing" format="dimension"/>
    </declare-styleable>

    <declare-styleable name="MultiChoicePreference">
        <attr name="entries" format="string"/>
        <attr name="entryValues" format="string"/>
        <attr name="initialValues" format="string"/>
    </declare-styleable>

    <declare-styleable name="MultiPrefMultiChoicePreference">
        <attr name="entryKeys" format="string"/>
    </declare-styleable>

    <declare-styleable name="TabsLayout">
        <attr name="tabs">
            <flag name="tabs_normal" value="0x00" />
            <flag name="tabs_private" value ="0x01" />
        </attr>
    </declare-styleable>

    <declare-styleable name="TabCounter">
        <attr name="android:layout"/>
    </declare-styleable>

    <declare-styleable name="PrivateBrowsing">
        <attr name="state_private" format="boolean"/>
    </declare-styleable>

    <declare-styleable name="LightweightTheme">
        <attr name="state_light" format="boolean"/>
        <attr name="state_dark" format="boolean"/>
        <attr name="autoUpdateTheme" format="boolean"/>
    </declare-styleable>

    <declare-styleable name="TwoWayView">
        <attr name="android:orientation"/>
        <attr name="android:choiceMode"/>
        <attr name="android:listSelector"/>
        <attr name="android:drawSelectorOnTop"/>
    </declare-styleable>

    <declare-styleable name="HomeListView">
        <!-- Draws a divider on top of the list, if true. Defaults to false. -->
        <attr name="topDivider" format="boolean"/>
    </declare-styleable>

    <declare-styleable name="FadedTextView">
        <attr name="fadeWidth" format="dimension"/>
    </declare-styleable>

    <declare-styleable name="FadedMultiColorTextView">
        <!-- The background color we should be fading over. Useful because the
             background is full alpha and we need to copy the background underneath. -->
        <attr name="fadeBackgroundColor" format="dimension"/>
    </declare-styleable>

    <declare-styleable name="IconTabWidget">
        <attr name="android:layout"/>

        <!-- Sets the tab's content type. Defaults to icon. -->
        <attr name="display">
            <enum name="icon" value="0x00" />
            <enum name="text" value="0x01" />
        </attr>
    </declare-styleable>

    <declare-styleable name="TopSitesGridView">
        <attr name="android:horizontalSpacing"/>
        <attr name="android:verticalSpacing"/>
    </declare-styleable>

    <declare-styleable name="TabMenuStrip">
        <attr name="strip" format="reference"/>
        <attr name="tabsMarginLeft" format="dimension" />
        <attr name="activeTextColor" format="color" />
        <attr name="inactiveTextColor" format="color" />
        <attr name="titlebarFill" format="boolean" />
    </declare-styleable>

    <declare-styleable name="CustomColorPreference">
        <attr name="titleColor" format="color" />
        <attr name="summaryColor" format="color" />
    </declare-styleable>

    <declare-styleable name="TabPanelBackButton">
        <attr name="rightDivider" format="reference"/>
        <attr name="dividerVerticalPadding" format="dimension"/>
    </declare-styleable>

    <declare-styleable name="EllipsisTextView">
        <attr name="ellipsizeAtLine" format="integer"/>
    </declare-styleable>

    <declare-styleable name="FaviconView">
        <attr name="dominantBorderEnabled" format="boolean" />
        <attr name="overrideScaleType" format="boolean" />
        <attr name="enableRoundCorners" format="boolean"/>
    </declare-styleable>

    <declare-styleable name="OverlayDialogButton">
        <attr name="drawable" format="reference" />
        <attr name="enabledText" format="string" />
        <attr name="disabledText" format="string" />
    </declare-styleable>

    <declare-styleable name="ThemedView">
        <!-- A reimplementation of android:tintList which is
             otherwise only available on API 21+.

             Using this attribute is mutually exclusive with android:tint
             and setting colorFilters in code. This is because on pre-Lollipop,
             android:tint and DrawableCompat.tint* uses colorFilters under the hood. -->
        <attr name="drawableTintList" format="color" />
    </declare-styleable>

</resources>