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" />
79 <!-- This Drawable is overlaid over the foreground of the Window's content area, usually
80 to place a shadow below the title. -->
81 <attr name="windowContentOverlay" format="reference" />
83 <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
84 <attr name="textAppearanceLargePopupMenu" format="reference" />
86 <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
87 <attr name="textAppearanceSmallPopupMenu" format="reference" />
90 <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
91 <attr name="textAppearanceSmall" format="reference" />
93 <attr name="textColorPrimary" format="color" />
94 <attr name="textColorPrimaryDisableOnly" format="color" />
95 <attr name="textColorPrimaryInverse" format="color" />
97 <attr name="spinnerItemStyle" format="reference" />
98 <attr name="spinnerDropDownItemStyle" format="reference" />
105 <!-- A smaller, sleeker list item height. -->
106 <attr name="listPreferredItemHeightSmall" format="dimension" />
108 <!-- The preferred padding along the left edge of list items. -->
109 <attr name="listPreferredItemPaddingLeft" format="dimension" />
110 <!-- The preferred padding along the right edge of list items. -->
111 <attr name="listPreferredItemPaddingRight" format="dimension" />
113 <!-- The preferred TextAppearance for the primary text of small list items. -->
114 <attr name="textAppearanceListItemSmall" format="reference" />
117 <attr name="windowMinWidthMajor" format="dimension" />
118 <attr name="windowMinWidthMinor" format="dimension" />
122 <!-- Drawable to use for generic vertical dividers. -->
123 <attr name="dividerVertical" format="reference" />
125 <attr name="actionDropDownStyle" format="reference" />
126 <attr name="actionButtonStyle" format="reference" />
127 <attr name="homeAsUpIndicator" format="reference" />
128 <attr name="dropDownListViewStyle" format="reference" />
129 <attr name="popupMenuStyle" format="reference" />
130 <attr name="dropdownListPreferredItemHeight" format="dimension" />
131 <attr name="actionSpinnerItemStyle" format="reference" />
132 <attr name="windowNoTitle" format="boolean"/>
133 <attr name="windowActionBar" format="boolean"/>
134 <attr name="windowActionBarOverlay" format="boolean"/>
135 <attr name="windowActionModeOverlay" format="boolean"/>
136 <attr name="windowSplitActionBar" format="boolean" />
139 <attr name="listPopupWindowStyle" format="reference" />
142 <!-- Default ActivityChooserView style. -->
143 <attr name="activityChooserViewStyle" format="reference" />
144 <!-- Drawable used as a background for activated items. -->
145 <attr name="activatedBackgroundIndicator" format="reference" />
147 <!-- Specified if we are forcing an action item overflow menu. -->
148 <attr name="absForceOverflow" format="boolean" />
150 <attr name="android:windowIsFloating" />
154 <!-- Attributes used to style the Action Bar. -->
155 <declare-styleable name="SherlockActionBar">
156 <!-- The type of navigation to use. -->
157 <attr name="navigationMode">
158 <!-- Normal static title text -->
159 <enum name="normal" value="0" />
160 <!-- The action bar will use a selection list for navigation. -->
161 <enum name="listMode" value="1" />
162 <!-- The action bar will use a series of horizontal tabs for navigation. -->
163 <enum name="tabMode" value="2" />
165 <!-- Options affecting how the action bar is displayed. -->
166 <attr name="displayOptions">
167 <flag name="useLogo" value="0x1" />
168 <flag name="showHome" value="0x2" />
169 <flag name="homeAsUp" value="0x4" />
170 <flag name="showTitle" value="0x8" />
171 <flag name="showCustom" value="0x10" />
172 <flag name="disableHome" value="0x20" />
174 <!-- Specifies title text used for navigationMode="normal" -->
175 <attr name="title" format="string" />
176 <!-- Specifies subtitle text used for navigationMode="normal" -->
177 <attr name="subtitle" format="string" />
178 <!-- Specifies a style to use for title text. -->
179 <attr name="titleTextStyle" />
180 <!-- Specifies a style to use for subtitle text. -->
181 <attr name="subtitleTextStyle" />
182 <!-- Specifies the drawable used for the application icon. -->
183 <attr name="icon" format="reference" />
184 <!-- Specifies the drawable used for the application logo. -->
185 <attr name="logo" format="reference" />
186 <!-- Specifies the drawable used for item dividers. -->
187 <attr name="divider" />
188 <!-- Specifies a background drawable for the action bar. -->
189 <attr name="background" />
190 <!-- Specifies a background drawable for a second stacked row of the action bar. -->
191 <attr name="backgroundStacked" format="reference|color" />
192 <!-- Specifies a background drawable for the bottom component of a split action bar. -->
193 <attr name="backgroundSplit" />
194 <!-- Specifies a layout for custom navigation. Overrides navigationMode. -->
195 <attr name="customNavigationLayout" format="reference" />
196 <!-- Specifies a fixed height. -->
197 <attr name="height" />
198 <!-- Specifies a layout to use for the "home" section of the action bar. -->
199 <attr name="homeLayout" format="reference" />
200 <!-- Specifies a style resource to use for an embedded progress bar. -->
201 <attr name="progressBarStyle" format="reference" />
202 <!-- Specifies a style resource to use for an indeterminate progress spinner. -->
203 <attr name="indeterminateProgressStyle" format="reference" />
204 <!-- Specifies the horizontal padding on either end for an embedded progress bar. -->
205 <attr name="progressBarPadding" format="dimension" />
206 <!-- Specifies padding that should be applied to the left and right sides of
207 system-provided items in the bar. -->
208 <attr name="itemPadding" format="dimension" />
212 <declare-styleable name="SherlockActionMode">
213 <!-- Specifies a style to use for title text. -->
214 <attr name="titleTextStyle" />
215 <!-- Specifies a style to use for subtitle text. -->
216 <attr name="subtitleTextStyle" />
217 <!-- Specifies a background for the action mode bar. -->
218 <attr name="background" />
219 <!-- Specifies a background for the split action mode bar. -->
220 <attr name="backgroundSplit" />
221 <!-- Specifies a fixed height for the action mode bar. -->
222 <attr name="height" />
225 <declare-styleable name="SherlockMenuView">
226 <!-- Default appearance of menu item text. -->
227 <attr name="itemTextAppearance" format="reference" />
228 <!-- Default horizontal divider between rows of menu items. -->
229 <attr name="horizontalDivider" format="reference" />
230 <!-- Default vertical divider between menu items. -->
231 <attr name="verticalDivider" format="reference" />
232 <!-- Default background for the menu header. -->
233 <attr name="headerBackground" format="color|reference" />
234 <!-- Default background for each menu item. -->
235 <attr name="itemBackground" format="color|reference" />
236 <!-- Default animations for the menu. -->
237 <attr name="windowAnimationStyle" format="reference" />
238 <!-- Default disabled icon alpha for each menu item that shows an icon. -->
239 <attr name="itemIconDisabledAlpha" format="float" />
240 <!-- Whether space should be reserved in layout when an icon is missing. -->
241 <attr name="preserveIconSpacing" format="boolean" />
244 <declare-styleable name="SherlockActionMenuItemView">
245 <attr name="android:minWidth" />
248 <declare-styleable name="SherlockActivityChooserView">
249 <!-- The maximal number of items initially shown in the activity list. -->
250 <attr name="initialActivityCount" format="string" />
251 <!-- The drawable to show in the button for expanding the activities overflow popup.
252 <strong>Note:</strong> Clients would like to set this drawable
253 as a clue about the action the chosen activity will perform. For
254 example, if share activity is to be chosen the drawable should
255 give a clue that sharing is to be performed.
257 <attr name="expandActivityOverflowButtonDrawable" format="reference" />
259 <attr name="android:background" />
262 <!-- Base attributes that are available to all groups. -->
263 <declare-styleable name="SherlockMenuGroup">
265 <!-- The ID of the group. -->
266 <attr name="android:id" />
268 <!-- The category applied to all items within this group.
269 (This will be or'ed with the orderInCategory attribute.) -->
270 <attr name="android:menuCategory" />
272 <!-- The order within the category applied to all items within this group.
273 (This will be or'ed with the category attribute.) -->
274 <attr name="android:orderInCategory" />
276 <!-- Whether the items are capable of displaying a check mark. -->
277 <attr name="android:checkableBehavior" />
279 <!-- Whether the items are shown/visible. -->
280 <attr name="android:visible" />
282 <!-- Whether the items are enabled. -->
283 <attr name="android:enabled" />
287 <!-- Base attributes that are available to all Item objects. -->
288 <declare-styleable name="SherlockMenuItem">
290 <!-- The ID of the item. -->
291 <attr name="android:id" />
293 <!-- The category applied to the item.
294 (This will be or'ed with the orderInCategory attribute.) -->
295 <attr name="android:menuCategory" />
297 <!-- The order within the category applied to the item.
298 (This will be or'ed with the category attribute.) -->
299 <attr name="android:orderInCategory" />
301 <!-- The title associated with the item. -->
302 <attr name="android:title" />
304 <!-- The condensed title associated with the item. This is used in situations where the
305 normal title may be too long to be displayed. -->
306 <attr name="android:titleCondensed" />
308 <!-- The icon associated with this item. This icon will not always be shown, so
309 the title should be sufficient in describing this item. -->
310 <attr name="android:icon" />
312 <!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
313 with alphabetic keys. -->
314 <attr name="android:alphabeticShortcut" />
316 <!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
318 <attr name="android:numericShortcut" />
320 <!-- Whether the item is capable of displaying a check mark. -->
321 <attr name="android:checkable" />
323 <!-- Whether the item is checked. Note that you must first have enabled checking with
324 the checkable attribute or else the check mark will not appear. -->
325 <attr name="android:checked" />
327 <!-- Whether the item is shown/visible. -->
328 <attr name="android:visible" />
330 <!-- Whether the item is enabled. -->
331 <attr name="android:enabled" />
333 <!-- Name of a method on the Context used to inflate the menu that will be
334 called when the item is clicked. -->
335 <attr name="android:onClick" />
337 <!-- How this item should display in the Action Bar, if present. -->
338 <attr name="android:showAsAction" />
340 <!-- An optional layout to be used as an action view.
341 See {@link android.view.MenuItem#setActionView(android.view.View)}
343 <attr name="android:actionLayout" />
345 <!-- The name of an optional View class to instantiate and use as an
346 action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
348 <attr name="android:actionViewClass" />
350 <!-- The name of an optional ActionProvider class to instantiate an action view
351 and perform operations such as default action for that menu item.
352 See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
354 <attr name="android:actionProviderClass" />
358 <declare-styleable name="SherlockSpinner">
359 <!-- The prompt to display when the spinner's dialog is shown. -->
360 <attr name="android:prompt" />
361 <!-- List selector to use for spinnerMode="dropdown" display. -->
362 <attr name="android:dropDownSelector" />
363 <!-- Background drawable to use for the dropdown in spinnerMode="dropdown". -->
364 <attr name="android:popupBackground" />
365 <!-- Vertical offset from the spinner widget for positioning the dropdown in
366 spinnerMode="dropdown". -->
367 <attr name="android:dropDownVerticalOffset" />
368 <!-- Horizontal offset from the spinner widget for positioning the dropdown
369 in spinnerMode="dropdown". -->
370 <attr name="android:dropDownHorizontalOffset" />
371 <!-- Width of the dropdown in spinnerMode="dropdown". -->
372 <attr name="android:dropDownWidth" />
373 <!-- Reference to a layout to use for displaying a prompt in the dropdown for
374 spinnerMode="dropdown". This layout must contain a TextView with the id
375 @android:id/text1 to be populated with the prompt text. -->
376 <attr name="android:popupPromptView" />
377 <!-- Gravity setting for positioning the currently selected item. -->
378 <attr name="android:gravity" />