1 <?xml version=
"1.0" encoding=
"utf-8"?>
4 <attr name=
"titleTextStyle" format=
"reference" />
5 <attr name=
"subtitleTextStyle" format=
"reference" />
6 <attr name=
"background" format=
"reference|color" />
7 <attr name=
"backgroundSplit" format=
"reference|color" />
8 <attr name=
"height" format=
"dimension" />
9 <attr name=
"divider" format=
"reference" />
11 <declare-styleable name=
"SherlockTheme">
12 <!-- =================== --
>
13 <!-- Action bar styles --
>
14 <!-- =================== --
>
16 <!-- Default style for tabs within an action bar --
>
17 <attr name=
"actionBarTabStyle" format=
"reference" />
18 <attr name=
"actionBarTabBarStyle" format=
"reference" />
19 <attr name=
"actionBarTabTextStyle" format=
"reference" />
20 <attr name=
"actionOverflowButtonStyle" format=
"reference" />
21 <!-- Reference to a style for the Action Bar --
>
22 <attr name=
"actionBarStyle" format=
"reference" />
23 <!-- Reference to a style for the split Action Bar. This style
24 controls the split component that holds the menu/action
25 buttons. actionBarStyle is still used for the primary
27 <attr name=
"actionBarSplitStyle" format=
"reference" />
28 <!-- Reference to a theme that should be used to inflate widgets
29 and layouts destined for the action bar. Most of the time
30 this will be a reference to the current theme, but when
31 the action bar has a significantly different contrast
32 profile than the rest of the activity the difference
33 can become important. If this is set to @null the current
34 theme will be used.--
>
35 <attr name=
"actionBarWidgetTheme" format=
"reference" />
36 <!-- Size of the Action Bar, including the contextual
37 bar used to present Action Modes. --
>
38 <attr name=
"actionBarSize" format=
"dimension" >
39 <enum name=
"wrap_content" value=
"0" />
41 <!-- Custom divider drawable to use for elements in the action bar. --
>
42 <attr name=
"actionBarDivider" format=
"reference" />
43 <!-- Custom item state list drawable background for action bar items. --
>
44 <attr name=
"actionBarItemBackground" format=
"reference" />
45 <!-- TextAppearance style that will be applied to text that
46 appears within action menu items. --
>
47 <attr name=
"actionMenuTextAppearance" format=
"reference" />
48 <!-- Color for text that appears within action menu items. --
>
49 <attr name=
"actionMenuTextColor" format=
"color|reference" />
51 <!-- =================== --
>
52 <!-- Action mode styles --
>
53 <!-- =================== --
>
55 <attr name=
"actionModeStyle" format=
"reference" />
56 <attr name=
"actionModeCloseButtonStyle" format=
"reference" />
57 <!-- Background drawable to use for action mode UI --
>
58 <attr name=
"actionModeBackground" format=
"reference" />
59 <!-- Background drawable to use for action mode UI in the lower split bar --
>
60 <attr name=
"actionModeSplitBackground" format=
"reference" />
61 <!-- Drawable to use for the close action mode button --
>
62 <attr name=
"actionModeCloseDrawable" format=
"reference" />
63 <!-- Drawable to use for the Share action button in WebView selection action modes --
>
64 <attr name=
"actionModeShareDrawable" format=
"reference" />
66 <!-- PopupWindow style to use for action modes when showing as a window overlay. --
>
67 <attr name=
"actionModePopupWindowStyle" format=
"reference" />
69 <!-- ============= --
>
70 <!-- Button styles --
>
71 <!-- ============= --
>
74 <!-- Small Button style. --
>
75 <attr name=
"buttonStyleSmall" format=
"reference" />
77 <!-- Background drawable for standalone items that need focus/pressed states. --
>
78 <attr name=
"selectableItemBackground" format=
"reference" />
82 <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
83 to place a shadow below the title. --
>
84 <attr name=
"windowContentOverlay" format=
"reference" />
86 <!-- Text color, typeface, size, and style for the text inside of a popup menu. --
>
87 <attr name=
"textAppearanceLargePopupMenu" format=
"reference" />
89 <!-- Text color, typeface, size, and style for small text inside of a popup menu. --
>
90 <attr name=
"textAppearanceSmallPopupMenu" format=
"reference" />
93 <!-- Text color, typeface, size, and style for
"small" text. Defaults to secondary text color. --
>
94 <attr name=
"textAppearanceSmall" format=
"reference" />
96 <attr name=
"textColorPrimary" format=
"color" />
97 <attr name=
"textColorPrimaryDisableOnly" format=
"color" />
98 <attr name=
"textColorPrimaryInverse" format=
"color" />
100 <attr name=
"spinnerItemStyle" format=
"reference" />
101 <attr name=
"spinnerDropDownItemStyle" format=
"reference" />
103 <!-- ============================ --
>
104 <!-- SearchView styles and assets --
>
105 <!-- ============================ --
>
107 <!-- SearchView AutoCompleteTextView style --
>
108 <attr name=
"searchAutoCompleteTextView" format=
"reference" />
109 <!-- SearchView dropdown background --
>
110 <attr name=
"searchDropdownBackground" format=
"reference" />
111 <!-- SearchView close button icon --
>
112 <attr name=
"searchViewCloseIcon" format=
"reference" />
113 <!-- SearchView Go button icon --
>
114 <attr name=
"searchViewGoIcon" format=
"reference" />
115 <!-- SearchView Search icon --
>
116 <attr name=
"searchViewSearchIcon" format=
"reference" />
117 <!-- SearchView Voice button icon --
>
118 <attr name=
"searchViewVoiceIcon" format=
"reference" />
119 <!-- SearchView query refinement icon --
>
120 <attr name=
"searchViewEditQuery" format=
"reference" />
121 <!-- SearchView query refinement icon background --
>
122 <attr name=
"searchViewEditQueryBackground" format=
"reference" />
123 <!-- SearchView text field background for the left section --
>
124 <attr name=
"searchViewTextField" format=
"reference" />
125 <!-- SearchView text field background for the right section --
>
126 <attr name=
"searchViewTextFieldRight" format=
"reference" />
127 <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide --
>
128 <attr name=
"textColorSearchUrl" format=
"reference|color" />
129 <!-- The list item height for search results. @hide --
>
130 <attr name=
"searchResultListItemHeight" format=
"dimension" />
131 <!-- Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. --
>
132 <attr name=
"textAppearanceSearchResultTitle" format=
"reference" />
133 <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. --
>
134 <attr name=
"textAppearanceSearchResultSubtitle" format=
"reference" />
142 <!-- A smaller, sleeker list item height. --
>
143 <attr name=
"listPreferredItemHeightSmall" format=
"dimension" />
145 <!-- The preferred padding along the left edge of list items. --
>
146 <attr name=
"listPreferredItemPaddingLeft" format=
"dimension" />
147 <!-- The preferred padding along the right edge of list items. --
>
148 <attr name=
"listPreferredItemPaddingRight" format=
"dimension" />
150 <!-- The preferred TextAppearance for the primary text of small list items. --
>
151 <attr name=
"textAppearanceListItemSmall" format=
"reference" />
154 <attr name=
"windowMinWidthMajor" format=
"dimension" />
155 <attr name=
"windowMinWidthMinor" format=
"dimension" />
159 <!-- Drawable to use for generic vertical dividers. --
>
160 <attr name=
"dividerVertical" format=
"reference" />
162 <attr name=
"actionDropDownStyle" format=
"reference" />
163 <attr name=
"actionButtonStyle" format=
"reference" />
164 <attr name=
"homeAsUpIndicator" format=
"reference" />
165 <attr name=
"dropDownListViewStyle" format=
"reference" />
166 <attr name=
"popupMenuStyle" format=
"reference" />
167 <attr name=
"dropdownListPreferredItemHeight" format=
"dimension" />
168 <attr name=
"actionSpinnerItemStyle" format=
"reference" />
169 <attr name=
"windowNoTitle" format=
"boolean"/>
170 <attr name=
"windowActionBar" format=
"boolean"/>
171 <attr name=
"windowActionBarOverlay" format=
"boolean"/>
172 <attr name=
"windowActionModeOverlay" format=
"boolean"/>
173 <attr name=
"windowSplitActionBar" format=
"boolean" />
176 <attr name=
"listPopupWindowStyle" format=
"reference" />
179 <!-- Default ActivityChooserView style. --
>
180 <attr name=
"activityChooserViewStyle" format=
"reference" />
181 <!-- Drawable used as a background for activated items. --
>
182 <attr name=
"activatedBackgroundIndicator" format=
"reference" />
184 <attr name=
"android:windowIsFloating" />
188 <!-- Attributes used to style the Action Bar. --
>
189 <declare-styleable name=
"SherlockActionBar">
190 <!-- The type of navigation to use. --
>
191 <attr name=
"navigationMode">
192 <!-- Normal static title text --
>
193 <enum name=
"normal" value=
"0" />
194 <!-- The action bar will use a selection list for navigation. --
>
195 <enum name=
"listMode" value=
"1" />
196 <!-- The action bar will use a series of horizontal tabs for navigation. --
>
197 <enum name=
"tabMode" value=
"2" />
199 <!-- Options affecting how the action bar is displayed. --
>
200 <attr name=
"displayOptions">
201 <flag name=
"useLogo" value=
"0x1" />
202 <flag name=
"showHome" value=
"0x2" />
203 <flag name=
"homeAsUp" value=
"0x4" />
204 <flag name=
"showTitle" value=
"0x8" />
205 <flag name=
"showCustom" value=
"0x10" />
206 <flag name=
"disableHome" value=
"0x20" />
208 <!-- Specifies title text used for
navigationMode=
"normal" --
>
209 <attr name=
"title" format=
"string" />
210 <!-- Specifies subtitle text used for
navigationMode=
"normal" --
>
211 <attr name=
"subtitle" format=
"string" />
212 <!-- Specifies a style to use for title text. --
>
213 <attr name=
"titleTextStyle" />
214 <!-- Specifies a style to use for subtitle text. --
>
215 <attr name=
"subtitleTextStyle" />
216 <!-- Specifies the drawable used for the application icon. --
>
217 <attr name=
"icon" format=
"reference" />
218 <!-- Specifies the drawable used for the application logo. --
>
219 <attr name=
"logo" format=
"reference" />
220 <!-- Specifies the drawable used for item dividers. --
>
221 <attr name=
"divider" />
222 <!-- Specifies a background drawable for the action bar. --
>
223 <attr name=
"background" />
224 <!-- Specifies a background drawable for a second stacked row of the action bar. --
>
225 <attr name=
"backgroundStacked" format=
"reference|color" />
226 <!-- Specifies a background drawable for the bottom component of a split action bar. --
>
227 <attr name=
"backgroundSplit" />
228 <!-- Specifies a layout for custom navigation. Overrides navigationMode. --
>
229 <attr name=
"customNavigationLayout" format=
"reference" />
230 <!-- Specifies a fixed height. --
>
231 <attr name=
"height" />
232 <!-- Specifies a layout to use for the
"home" section of the action bar. --
>
233 <attr name=
"homeLayout" format=
"reference" />
234 <!-- Specifies a style resource to use for an embedded progress bar. --
>
235 <attr name=
"progressBarStyle" format=
"reference" />
236 <!-- Specifies a style resource to use for an indeterminate progress spinner. --
>
237 <attr name=
"indeterminateProgressStyle" format=
"reference" />
238 <!-- Specifies the horizontal padding on either end for an embedded progress bar. --
>
239 <attr name=
"progressBarPadding" format=
"dimension" />
240 <!-- Specifies padding that should be applied to the left and right sides of
241 system-provided items in the bar. --
>
242 <attr name=
"itemPadding" format=
"dimension" />
246 <declare-styleable name=
"SherlockActionMode">
247 <!-- Specifies a style to use for title text. --
>
248 <attr name=
"titleTextStyle" />
249 <!-- Specifies a style to use for subtitle text. --
>
250 <attr name=
"subtitleTextStyle" />
251 <!-- Specifies a background for the action mode bar. --
>
252 <attr name=
"background" />
253 <!-- Specifies a background for the split action mode bar. --
>
254 <attr name=
"backgroundSplit" />
255 <!-- Specifies a fixed height for the action mode bar. --
>
256 <attr name=
"height" />
259 <declare-styleable name=
"SherlockMenuView">
260 <!-- Default appearance of menu item text. --
>
261 <attr name=
"itemTextAppearance" format=
"reference" />
262 <!-- Default horizontal divider between rows of menu items. --
>
263 <attr name=
"horizontalDivider" format=
"reference" />
264 <!-- Default vertical divider between menu items. --
>
265 <attr name=
"verticalDivider" format=
"reference" />
266 <!-- Default background for the menu header. --
>
267 <attr name=
"headerBackground" format=
"color|reference" />
268 <!-- Default background for each menu item. --
>
269 <attr name=
"itemBackground" format=
"color|reference" />
270 <!-- Default animations for the menu. --
>
271 <attr name=
"windowAnimationStyle" format=
"reference" />
272 <!-- Default disabled icon alpha for each menu item that shows an icon. --
>
273 <attr name=
"itemIconDisabledAlpha" format=
"float" />
274 <!-- Whether space should be reserved in layout when an icon is missing. --
>
275 <attr name=
"preserveIconSpacing" format=
"boolean" />
278 <declare-styleable name=
"SherlockActionMenuItemView">
279 <attr name=
"android:minWidth" />
282 <declare-styleable name=
"SherlockActivityChooserView">
283 <!-- The maximal number of items initially shown in the activity list. --
>
284 <attr name=
"initialActivityCount" format=
"string" />
285 <!-- The drawable to show in the button for expanding the activities overflow popup.
286 <strong>Note:
</strong> Clients would like to set this drawable
287 as a clue about the action the chosen activity will perform. For
288 example, if share activity is to be chosen the drawable should
289 give a clue that sharing is to be performed.
291 <attr name=
"expandActivityOverflowButtonDrawable" format=
"reference" />
293 <attr name=
"android:background" />
296 <!-- Base attributes that are available to all groups. --
>
297 <declare-styleable name=
"SherlockMenuGroup">
299 <!-- The ID of the group. --
>
300 <attr name=
"android:id" />
302 <!-- The category applied to all items within this group.
303 (This will be or'ed with the orderInCategory attribute.) --
>
304 <attr name=
"android:menuCategory" />
306 <!-- The order within the category applied to all items within this group.
307 (This will be or'ed with the category attribute.) --
>
308 <attr name=
"android:orderInCategory" />
310 <!-- Whether the items are capable of displaying a check mark. --
>
311 <attr name=
"android:checkableBehavior" />
313 <!-- Whether the items are shown/visible. --
>
314 <attr name=
"android:visible" />
316 <!-- Whether the items are enabled. --
>
317 <attr name=
"android:enabled" />
321 <!-- Base attributes that are available to all Item objects. --
>
322 <declare-styleable name=
"SherlockMenuItem">
324 <!-- The ID of the item. --
>
325 <attr name=
"android:id" />
327 <!-- The category applied to the item.
328 (This will be or'ed with the orderInCategory attribute.) --
>
329 <attr name=
"android:menuCategory" />
331 <!-- The order within the category applied to the item.
332 (This will be or'ed with the category attribute.) --
>
333 <attr name=
"android:orderInCategory" />
335 <!-- The title associated with the item. --
>
336 <attr name=
"android:title" />
338 <!-- The condensed title associated with the item. This is used in situations where the
339 normal title may be too long to be displayed. --
>
340 <attr name=
"android:titleCondensed" />
342 <!-- The icon associated with this item. This icon will not always be shown, so
343 the title should be sufficient in describing this item. --
>
344 <attr name=
"android:icon" />
346 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
347 with alphabetic keys. --
>
348 <attr name=
"android:alphabeticShortcut" />
350 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g.,
12-key)
352 <attr name=
"android:numericShortcut" />
354 <!-- Whether the item is capable of displaying a check mark. --
>
355 <attr name=
"android:checkable" />
357 <!-- Whether the item is checked. Note that you must first have enabled checking with
358 the checkable attribute or else the check mark will not appear. --
>
359 <attr name=
"android:checked" />
361 <!-- Whether the item is shown/visible. --
>
362 <attr name=
"android:visible" />
364 <!-- Whether the item is enabled. --
>
365 <attr name=
"android:enabled" />
367 <!-- Name of a method on the Context used to inflate the menu that will be
368 called when the item is clicked. --
>
369 <attr name=
"android:onClick" />
371 <!-- How this item should display in the Action Bar, if present. --
>
372 <attr name=
"android:showAsAction" />
374 <!-- An optional layout to be used as an action view.
375 See {@link android.view.MenuItem#setActionView(android.view.View)}
377 <attr name=
"android:actionLayout" />
379 <!-- The name of an optional View class to instantiate and use as an
380 action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
382 <attr name=
"android:actionViewClass" />
384 <!-- The name of an optional ActionProvider class to instantiate an action view
385 and perform operations such as default action for that menu item.
386 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
388 <attr name=
"android:actionProviderClass" />
392 <declare-styleable name=
"SherlockSpinner">
393 <!-- The prompt to display when the spinner's dialog is shown. --
>
394 <attr name=
"android:prompt" />
395 <!-- List selector to use for
spinnerMode=
"dropdown" display. --
>
396 <attr name=
"android:dropDownSelector" />
397 <!-- Background drawable to use for the dropdown in
spinnerMode=
"dropdown". --
>
398 <attr name=
"android:popupBackground" />
399 <!-- Vertical offset from the spinner widget for positioning the dropdown in
400 spinnerMode=
"dropdown". --
>
401 <attr name=
"android:dropDownVerticalOffset" />
402 <!-- Horizontal offset from the spinner widget for positioning the dropdown
403 in
spinnerMode=
"dropdown". --
>
404 <attr name=
"android:dropDownHorizontalOffset" />
405 <!-- Width of the dropdown in
spinnerMode=
"dropdown". --
>
406 <attr name=
"android:dropDownWidth" />
407 <!-- Reference to a layout to use for displaying a prompt in the dropdown for
408 spinnerMode=
"dropdown". This layout must contain a TextView with the id
409 @android:id/text1 to be populated with the prompt text. --
>
410 <attr name=
"android:popupPromptView" />
411 <!-- Gravity setting for positioning the currently selected item. --
>
412 <attr name=
"android:gravity" />
415 <declare-styleable name=
"SherlockSearchView">
416 <!-- The default state of the SearchView. If true, it will be iconified when not in
417 use and expanded when clicked. --
>
418 <attr name=
"iconifiedByDefault" format=
"boolean"/>
419 <!-- An optional maximum width of the SearchView. --
>
420 <attr name=
"android:maxWidth" />
421 <!-- An optional query hint string to be displayed in the empty query field. --
>
422 <attr name=
"queryHint" format=
"string" />
423 <!-- The IME options to set on the query text field. --
>
424 <attr name=
"android:imeOptions" />
425 <!-- The input type to set on the query text field. --
>
426 <attr name=
"android:inputType" />
429 <declare-styleable name=
"SherlockView">
430 <attr name=
"android:focusable"/>