9
** You may obtain a copy of the License at
10
**
11
**     http://www.apache.org/licenses/LICENSE-2.0
12
**
13
** Unless required by applicable law or agreed to in writing, software
14
** distributed under the License is distributed on an "AS IS" BASIS,
15
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
** See the License for the specific language governing permissions and
17
** limitations under the License.
18
*/
19
-->
20
<resources>
21
    <!-- Default height of an action bar. -->
22
    <dimen name="abs__action_bar_default_height">56dip</dimen>
23
    <!-- Vertical padding around action bar icons. -->
24
    <dimen name="abs__action_bar_icon_vertical_padding">4dip</dimen>
25
    <!-- Text size for action bar titles -->
26
    <dimen name="abs__action_bar_title_text_size">18dp</dimen>
27
    <!-- Text size for action bar subtitles -->
28
    <dimen name="abs__action_bar_subtitle_text_size">14dp</dimen>
29
    <!-- Top margin for action bar subtitles -->
30
    <dimen name="abs__action_bar_subtitle_top_margin">-3dp</dimen>
31
    <!-- Bottom margin for action bar subtitles -->
32
    <dimen name="abs__action_bar_subtitle_bottom_margin">9dip</dimen>
33
34
    <!-- Minimum width for an action button in the menu area of an action bar -->
35
    <dimen name="abs__action_button_min_width">64dip</dimen>
36
    
37
    <!-- The platform's desired minimum size for a dialog's width when it
38
         is along the major axis (that is the screen is landscape).  This may
39
         be either a fraction or a dimension. -->
40
    <item type="dimen" name="abs__dialog_min_width_major">45%</item>
41
    <!-- The platform's desired minimum size for a dialog's width when it
42
         is along the minor axis (that is the screen is portrait).  This may
43
         be either a fraction or a dimension. -->
44
    <item type="dimen" name="abs__dialog_min_width_minor">72%</item>
45
</resources>

+ 432 - 0
wade-mobile-lib/res/values/abs__attrs.xml

@ -0,0 +1,432 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<resources>
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" />
10
11
    <declare-styleable name="SherlockTheme">
12
        <!-- =================== -->
13
        <!-- Action bar styles   -->
14
        <!-- =================== -->
15
        <eat-comment />
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
26
             bar. -->
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" />
40
        </attr>
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" />
50
51
        <!-- =================== -->
52
        <!-- Action mode styles  -->
53
        <!-- =================== -->
54
        <eat-comment />
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" />
65
66
        <!-- PopupWindow style to use for action modes when showing as a window overlay. -->
67
        <attr name="actionModePopupWindowStyle" format="reference" />
68
69
        <!-- ============= -->
70
        <!-- Button styles -->
71
        <!-- ============= -->
72
        <eat-comment />
73
74
        <!-- Small Button style. -->
75
        <attr name="buttonStyleSmall" format="reference" />
76
77
        <!-- Background drawable for standalone items that need focus/pressed states. -->
78
        <attr name="selectableItemBackground" format="reference" />
79
80
81
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" />
85
86
        <!-- Text color, typeface, size, and style for the text inside of a popup menu. -->
87
        <attr name="textAppearanceLargePopupMenu" format="reference" />
88
89
        <!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
90
        <attr name="textAppearanceSmallPopupMenu" format="reference" />
91
92
93
        <!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
94
        <attr name="textAppearanceSmall" format="reference" />
95
96
        <attr name="textColorPrimary" format="color" />
97
        <attr name="textColorPrimaryDisableOnly" format="color" />
98
        <attr name="textColorPrimaryInverse" format="color" />
99
100
        <attr name="spinnerItemStyle" format="reference" />
101
        <attr name="spinnerDropDownItemStyle" format="reference" />
102
103
        <!-- ============================ -->
104
        <!-- SearchView styles and assets -->
105
        <!-- ============================ -->
106
        <eat-comment />
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" />
135
136
137
        <!-- =========== -->
138
        <!-- List styles -->
139
        <!-- =========== -->
140
        <eat-comment />
141
142
        <!-- A smaller, sleeker list item height. -->
143
        <attr name="listPreferredItemHeightSmall" format="dimension" />
144
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" />
149
150
        <!-- The preferred TextAppearance for the primary text of small list items. -->
151
        <attr name="textAppearanceListItemSmall" format="reference" />
152
153
154
        <attr name="windowMinWidthMajor" format="dimension" />
155
        <attr name="windowMinWidthMinor" format="dimension" />
156
157
158
159
        <!-- Drawable to use for generic vertical dividers. -->
160
        <attr name="dividerVertical" format="reference" />
161
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" />
174
175
176
        <attr name="listPopupWindowStyle" format="reference" />
177
178
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" />
183
184
        <attr name="dropDownHintAppearance" format="reference" />
185
    </declare-styleable>
186
187
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" />
198
        </attr>
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" />
207
        </attr>
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" />
243
    </declare-styleable>
244
245
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" />
257
    </declare-styleable>
258
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" />
276
    </declare-styleable>
277
278
    <declare-styleable name="SherlockActionMenuItemView">
279
        <attr name="android:minWidth" />
280
    </declare-styleable>
281
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.
290
         -->
291
        <attr name="expandActivityOverflowButtonDrawable" format="reference" />
292
293
        <attr name="android:background" />
294
    </declare-styleable>
295
296
    <!-- Base attributes that are available to all groups. -->
297
    <declare-styleable name="SherlockMenuGroup">
298
299
        <!-- The ID of the group. -->
300
        <attr name="android:id" />
301
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" />
305
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" />
309
310
        <!-- Whether the items are capable of displaying a check mark. -->
311
        <attr name="android:checkableBehavior" />
312
313
        <!-- Whether the items are shown/visible. -->
314
        <attr name="android:visible" />
315
316
        <!-- Whether the items are enabled. -->
317
        <attr name="android:enabled" />
318
319
    </declare-styleable>
320
321
    <!-- Base attributes that are available to all Item objects. -->
322
    <declare-styleable name="SherlockMenuItem">
323
324
        <!-- The ID of the item. -->
325
        <attr name="android:id" />
326
327
        <!-- The category applied to the item.
328
             (This will be or'ed with the orderInCategory attribute.) -->
329
        <attr name="android:menuCategory" />
330
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" />
334
335
        <!-- The title associated with the item. -->
336
        <attr name="android:title" />
337
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" />
341
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" />
345
346
        <!-- The alphabetic shortcut key.  This is the shortcut when using a keyboard
347
             with alphabetic keys. -->
348
        <attr name="android:alphabeticShortcut" />
349
350
        <!-- The numeric shortcut key.  This is the shortcut when using a numeric (e.g., 12-key)
351
             keyboard. -->
352
        <attr name="android:numericShortcut" />
353
354
        <!-- Whether the item is capable of displaying a check mark. -->
355
        <attr name="android:checkable" />
356
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" />
360
361
        <!-- Whether the item is shown/visible. -->
362
        <attr name="android:visible" />
363
364
        <!-- Whether the item is enabled. -->
365
        <attr name="android:enabled" />
366
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" />
370
371
        <!-- How this item should display in the Action Bar, if present. -->
372
        <attr name="android:showAsAction" />
373
374
        <!-- An optional layout to be used as an action view.
375
             See {@link android.view.MenuItem#setActionView(android.view.View)}
376
             for more info. -->
377
        <attr name="android:actionLayout" />
378
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)}
381
             for more info. -->
382
        <attr name="android:actionViewClass" />
383
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)}
387
             for more info. -->
388
        <attr name="android:actionProviderClass" />
389
390
    </declare-styleable>
391
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" />
413
    </declare-styleable>
414
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" />
427
    </declare-styleable>
428
429
    <declare-styleable name="SherlockView">
430
        <attr name="android:focusable"/>
431
    </declare-styleable>
432
</resources>

+ 22 - 0
wade-mobile-lib/res/values/abs__bools.xml

@ -0,0 +1,22 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- Copyright (C) 2011 The Android Open Source Project
3
4
     Licensed under the Apache License, Version 2.0 (the "License");
5
     you may not use this file except in compliance with the License.
6
     You may obtain a copy of the License at
7
8
          http://www.apache.org/licenses/LICENSE-2.0
9
10
     Unless required by applicable law or agreed to in writing, software
11
     distributed under the License is distributed on an "AS IS" BASIS,
12
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
     See the License for the specific language governing permissions and
14
     limitations under the License.
15
-->
16
17
<resources>
18
    <bool name="abs__action_bar_embed_tabs">false</bool>
19
    <bool name="abs__split_action_bar_is_narrow">true</bool>
20
    <bool name="abs__action_bar_expanded_action_views_exclusive">true</bool>
21
    <!--bool name="target_honeycomb_needs_options_menu">true</bool-->
22
</resources>

+ 24 - 0
wade-mobile-lib/res/values/abs__colors.xml

@ -0,0 +1,24 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- Copyright (C) 2011 The Android Open Source Project
3
4
     Licensed under the Apache License, Version 2.0 (the "License");
5
     you may not use this file except in compliance with the License.
6
     You may obtain a copy of the License at
7
8
          http://www.apache.org/licenses/LICENSE-2.0
9
10
     Unless required by applicable law or agreed to in writing, software
11
     distributed under the License is distributed on an "AS IS" BASIS,
12
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
     See the License for the specific language governing permissions and
14
     limitations under the License.
15
-->
16
17
<resources>
18
    <color name="abs__background_holo_dark">#ff000000</color>
19
    <color name="abs__background_holo_light">#fff3f3f3</color>
20
    <color name="abs__bright_foreground_holo_dark">@color/abs__background_holo_light</color>
21
    <color name="abs__bright_foreground_holo_light">@color/abs__background_holo_dark</color>
22
    <color name="abs__bright_foreground_disabled_holo_dark">#ff4c4c4c</color>
23
    <color name="abs__bright_foreground_disabled_holo_light">#ffb2b2b2</color>
24
</resources>

+ 43 - 0
wade-mobile-lib/res/values/abs__config.xml

@ -0,0 +1,43 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
/*
4
** Copyright 2009, The Android Open Source Project
5
**
6
** Licensed under the Apache License, Version 2.0 (the "License");
7
** you may not use this file except in compliance with the License.
8
** You may obtain a copy of the License at
9
**
10
**     http://www.apache.org/licenses/LICENSE-2.0
11
**
12
** Unless required by applicable law or agreed to in writing, software
13
** distributed under the License is distributed on an "AS IS" BASIS,
14
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
** See the License for the specific language governing permissions and
16
** limitations under the License.
17
*/
18
-->
19
20
<!-- These resources are around just to allow their values to be customized
21
     for different hardware and product builds. -->
22
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
23
24
    <!-- The maximum width we would prefer dialogs to be.  0 if there is no
25
         maximum (let them grow as large as the screen).  Actual values are
26
         specified for -large and -xlarge configurations. -->
27
    <dimen name="abs__config_prefDialogWidth">320dp</dimen>
28
29
    <!-- Sets whether menu shortcuts should be displayed on panel menus when
30
         a keyboard is present. -->
31
    <bool name="abs__config_showMenuShortcutsWhenKeyboardPresent">false</bool>
32
33
    <!-- Whether action menu items should be displayed in ALLCAPS or not.
34
         Defaults to true. If this is not appropriate for specific locales
35
         it should be disabled in that locale's resources. -->
36
    <bool name="abs__config_actionMenuItemAllCaps">true</bool>
37
38
    <!-- Whether action menu items should obey the "withText" showAsAction
39
         flag. This may be set to false for situations where space is
40
         extremely limited. -->
41
    <bool name="abs__config_allowActionMenuItemTextWithIcon">false</bool>
42
43
</resources>

+ 55 - 0
wade-mobile-lib/res/values/abs__dimens.xml

@ -0,0 +1,55 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
/* //device/apps/common/assets/res/any/dimens.xml
4
**
5
** Copyright 2006, The Android Open Source Project
6
**
7
** Licensed under the Apache License, Version 2.0 (the "License");
8
** you may not use this file except in compliance with the License.
9
** You may obtain a copy of the License at
10
**
11
**     http://www.apache.org/licenses/LICENSE-2.0
12
**
13
** Unless required by applicable law or agreed to in writing, software
14
** distributed under the License is distributed on an "AS IS" BASIS,
15
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
** See the License for the specific language governing permissions and
17
** limitations under the License.
18
*/
19
-->
20
<resources>
21
    <!-- Default height of an action bar. -->
22
    <dimen name="abs__action_bar_default_height">48dip</dimen>
23
    <!-- Vertical padding around action bar icons. -->
24
    <dimen name="abs__action_bar_icon_vertical_padding">8dip</dimen>
25
    <!-- Text size for action bar titles -->
26
    <dimen name="abs__action_bar_title_text_size">18dp</dimen>
27
    <!-- Text size for action bar subtitles -->
28
    <dimen name="abs__action_bar_subtitle_text_size">14dp</dimen>
29
    <!-- Top margin for action bar subtitles -->
30
    <dimen name="abs__action_bar_subtitle_top_margin">-3dp</dimen>
31
    <!-- Bottom margin for action bar subtitles -->
32
    <dimen name="abs__action_bar_subtitle_bottom_margin">5dip</dimen>
33
34
    <integer name="abs__max_action_buttons">2</integer>
35
36
    <!-- Minimum width for an action button in the menu area of an action bar -->
37
    <dimen name="abs__action_button_min_width">56dip</dimen>
38
39
40
    <!-- Text padding for dropdown items -->
41
    <dimen name="abs__dropdownitem_text_padding_left">8dip</dimen>
42
43
    <!-- Text padding for dropdown items -->
44
    <dimen name="abs__dropdownitem_text_padding_right">8dip</dimen>
45
46
    <!-- Width of the icon in a dropdown list -->
47
    <dimen name="abs__dropdownitem_icon_width">32dip</dimen>
48
49
50
    <!-- Minimum width of the search view text entry area. -->
51
    <dimen name="abs__search_view_text_min_width">160dip</dimen>
52
53
    <!-- Preferred width of the search view. -->
54
    <dimen name="abs__search_view_preferred_width">320dip</dimen>
55
</resources>

+ 26 - 0
wade-mobile-lib/res/values/abs__ids.xml

@ -0,0 +1,26 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
**
4
** Copyright 2007, The Android Open Source Project
5
**
6
** Licensed under the Apache License, Version 2.0 (the "License");
7
** you may not use this file except in compliance with the License.
8
** You may obtain a copy of the License at
9
**
10
**     http://www.apache.org/licenses/LICENSE-2.0
11
**
12
** Unless required by applicable law or agreed to in writing, software
13
** distributed under the License is distributed on an "AS IS" BASIS,
14
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
** See the License for the specific language governing permissions and
16
** limitations under the License.
17
*/
18
-->
19
<resources>
20
  <item type="id" name="abs__home" />
21
  <item type="id" name="abs__up" />
22
  <item type="id" name="abs__action_menu_divider" />
23
  <item type="id" name="abs__action_menu_presenter" />
24
  <item type="id" name="abs__progress_circular" />
25
  <item type="id" name="abs__progress_horizontal" />
26
</resources>

+ 49 - 0
wade-mobile-lib/res/values/abs__strings.xml

@ -0,0 +1,49 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
**
4
** Copyright 2007, The Android Open Source Project
5
**
6
** Licensed under the Apache License, Version 2.0 (the "License");
7
** you may not use this file except in compliance with the License.
8
** You may obtain a copy of the License at
9
**
10
**     http://www.apache.org/licenses/LICENSE-2.0
11
**
12
** Unless required by applicable law or agreed to in writing, software
13
** distributed under the License is distributed on an "AS IS" BASIS,
14
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
** See the License for the specific language governing permissions and
16
** limitations under the License.
17
*/
18
-->
19
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
20
    <!-- Content description for the action bar "home" affordance. [CHAR LIMIT=NONE] -->
21
    <string name="abs__action_bar_home_description">Navigate home</string>
22
    <!-- Content description for the action bar "up" affordance. [CHAR LIMIT=NONE] -->
23
    <string name="abs__action_bar_up_description">Navigate up</string>
24
    <!-- Content description for the action menu overflow button. [CHAR LIMIT=NONE] -->
25
    <string name="abs__action_menu_overflow_description">More options</string>
26
27
    <!-- Label for the "Done" button on the far left of action mode toolbars. -->
28
    <string name="abs__action_mode_done">Done</string>
29
30
    <!-- Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25] -->
31
    <string name="abs__activity_chooser_view_see_all">See all...</string>
32
    <!-- Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE] -->
33
    <string name="abs__activitychooserview_choose_application">Choose an application</string>
34
    <!-- Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] -->
35
    <string name="abs__shareactionprovider_share_with">Share with</string>
36
    <!-- Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] -->
37
    <string name="abs__shareactionprovider_share_with_application">Share with <xliff:g id="application_name" example="Bluetooth">%s</xliff:g></string>
38
39
    <!-- SearchView accessibility description for search button [CHAR LIMIT=NONE] -->
40
    <string name="abs__searchview_description_search">Search</string>
41
    <!-- SearchView accessibility description for search text field [CHAR LIMIT=NONE] -->
42
    <string name="abs__searchview_description_query">Search query</string>
43
    <!-- SearchView accessibility description for clear button [CHAR LIMIT=NONE] -->
44
    <string name="abs__searchview_description_clear">Clear query</string>
45
    <!-- SearchView accessibility description for submit button [CHAR LIMIT=NONE] -->
46
    <string name="abs__searchview_description_submit">Submit query</string>
47
    <!-- SearchView accessibility description for voice button [CHAR LIMIT=NONE] -->
48
    <string name="abs__searchview_description_voice">Voice search</string>
49
</resources>

+ 412 - 0
wade-mobile-lib/res/values/abs__styles.xml

@ -0,0 +1,412 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<resources>
4
    <style name="Widget">
5
    </style>
6
7
    <style name="Sherlock.__Widget.ActionBar" parent="Widget">
8
        <item name="displayOptions">useLogo|showHome|showTitle</item>
9
        <item name="height">?attr/actionBarSize</item>
10
        <item name="android:paddingLeft">0dip</item>
11
        <item name="android:paddingTop">0dip</item>
12
        <item name="android:paddingRight">0dip</item>
13
        <item name="android:paddingBottom">0dip</item>
14
        <item name="homeLayout">@layout/abs__action_bar_home</item>
15
    </style>
16
    <style name="Widget.Sherlock.ActionBar" parent="Sherlock.__Widget.ActionBar">
17
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Title</item>
18
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Subtitle</item>
19
        <item name="background">@drawable/abs__ab_transparent_dark_holo</item>
20
        <item name="backgroundStacked">@drawable/abs__ab_stacked_transparent_dark_holo</item>
21
        <item name="backgroundSplit">@drawable/abs__ab_bottom_transparent_dark_holo</item>
22
        <item name="divider">?attr/dividerVertical</item>
23
        <item name="progressBarStyle">@style/Widget.Sherlock.ProgressBar.Horizontal</item>
24
        <item name="indeterminateProgressStyle">@style/Widget.Sherlock.ProgressBar</item>
25
        <item name="progressBarPadding">32dip</item>
26
        <item name="itemPadding">8dip</item>
27
    </style>
28
    <style name="Widget.Sherlock.ActionBar.Solid" parent="Sherlock.__Widget.ActionBar">
29
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Title</item>
30
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Subtitle</item>
31
        <item name="background">@drawable/abs__ab_solid_dark_holo</item>
32
        <item name="backgroundStacked">@drawable/abs__ab_stacked_solid_dark_holo</item>
33
        <item name="backgroundSplit">@drawable/abs__ab_bottom_solid_dark_holo</item>
34
        <item name="divider">?attr/dividerVertical</item>
35
        <item name="progressBarStyle">@style/Widget.Sherlock.ProgressBar.Horizontal</item>
36
        <item name="indeterminateProgressStyle">@style/Widget.Sherlock.ProgressBar</item>
37
        <item name="progressBarPadding">32dip</item>
38
        <item name="itemPadding">8dip</item>
39
    </style>
40
    <style name="Widget.Sherlock.Light.ActionBar" parent="Widget.Sherlock.ActionBar">
41
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Title</item>
42
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Subtitle</item>
43
        <item name="background">@drawable/abs__ab_transparent_light_holo</item>
44
        <item name="backgroundStacked">@drawable/abs__ab_stacked_transparent_light_holo</item>
45
        <item name="backgroundSplit">@drawable/abs__ab_bottom_transparent_light_holo</item>
46
        <item name="homeAsUpIndicator">@drawable/abs__ic_ab_back_holo_light</item>
47
        <item name="progressBarStyle">@style/Widget.Sherlock.Light.ProgressBar.Horizontal</item>
48
        <item name="indeterminateProgressStyle">@style/Widget.Sherlock.Light.ProgressBar</item>
49
    </style>
50
    <style name="Widget.Sherlock.Light.ActionBar.Solid">
51
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Title</item>
52
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Subtitle</item>
53
        <item name="background">@drawable/abs__ab_solid_light_holo</item>
54
        <item name="backgroundStacked">@drawable/abs__ab_stacked_solid_light_holo</item>
55
        <item name="backgroundSplit">@drawable/abs__ab_bottom_solid_light_holo</item>
56
        <item name="divider">?attr/dividerVertical</item>
57
        <item name="progressBarStyle">@style/Widget.Sherlock.Light.ProgressBar.Horizontal</item>
58
        <item name="indeterminateProgressStyle">@style/Widget.Sherlock.Light.ProgressBar</item>
59
        <item name="progressBarPadding">32dip</item>
60
        <item name="itemPadding">8dip</item>
61
    </style>
62
    <style name="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
63
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Title.Inverse</item>
64
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionBar.Subtitle.Inverse</item>
65
        <item name="background">@drawable/abs__ab_solid_dark_holo</item>
66
        <item name="backgroundStacked">@drawable/abs__ab_stacked_solid_dark_holo</item>
67
        <item name="backgroundSplit">@drawable/abs__ab_bottom_solid_inverse_holo</item>
68
        <item name="divider">@drawable/abs__list_divider_holo_dark</item>
69
        <item name="progressBarStyle">@style/Widget.Sherlock.ProgressBar.Horizontal</item>
70
        <item name="indeterminateProgressStyle">@style/Widget.Sherlock.ProgressBar</item>
71
        <item name="progressBarPadding">32dip</item>
72
        <item name="itemPadding">8dip</item>
73
    </style>
74
75
    <style name="Widget.Sherlock.ActionBar.TabView" parent="Widget">
76
        <item name="android:gravity">center_horizontal</item>
77
        <item name="android:background">@drawable/abs__tab_indicator_ab_holo</item>
78
        <item name="android:paddingLeft">16dip</item>
79
        <item name="android:paddingRight">16dip</item>
80
    </style>
81
    <style name="Widget.Sherlock.Light.ActionBar.TabView" parent="Widget.Sherlock.ActionBar.TabView">
82
    </style>
83
    <style name="Widget.Sherlock.Light.ActionBar.TabView.Inverse">
84
    </style>
85
86
    <style name="Widget.Sherlock.ActionBar.TabBar" parent="Widget">
87
        <item name="android:divider">?attr/actionBarDivider</item>
88
        <item name="android:showDividers">middle</item>
89
        <item name="android:dividerPadding">12dip</item>
90
    </style>
91
    <style name="Widget.Sherlock.Light.ActionBar.TabBar" parent="Widget.Sherlock.ActionBar.TabBar">
92
    </style>
93
    <style name="Widget.Sherlock.Light.ActionBar.TabBar.Inverse">
94
    </style>
95
96
    <style name="Widget.Sherlock.ActionBar.TabText" parent="Widget">
97
        <item name="android:textAppearance">@null</item>
98
        <item name="android:textColor">?attr/textColorPrimary</item>
99
        <item name="android:textSize">12sp</item>
100
        <item name="android:textStyle">bold</item>
101
        <item name="android:textAllCaps">true</item>
102
        <item name="android:ellipsize">marquee</item>
103
        <item name="android:maxLines">2</item>
104
    </style>
105
    <style name="Widget.Sherlock.Light.ActionBar.TabText" parent="Widget.Sherlock.ActionBar.TabText">
106
    </style>
107
    <style name="Widget.Sherlock.Light.ActionBar.TabText.Inverse">
108
        <item name="android:textColor">?attr/textColorPrimaryInverse</item>
109
    </style>
110
111
    <style name="Widget.Sherlock.ActionButton" parent="Widget">
112
        <item name="android:background">?attr/actionBarItemBackground</item>
113
        <item name="android:minHeight">?attr/actionBarSize</item>
114
115
        <item name="android:minWidth">@dimen/abs__action_button_min_width</item>
116
        <item name="android:gravity">center</item>
117
        <item name="android:paddingLeft">12dip</item>
118
        <item name="android:paddingRight">12dip</item>
119
        <item name="android:scaleType">center</item>
120
    </style>
121
    <style name="Widget.Sherlock.Light.ActionButton" parent="Widget.Sherlock.ActionButton">
122
    </style>
123
124
    <style name="Widget.Sherlock.ActionButton.CloseMode">
125
        <item name="android:background">@drawable/abs__btn_cab_done_holo_dark</item>
126
    </style>
127
    <style name="Widget.Sherlock.Light.ActionButton.CloseMode">
128
        <item name="android:background">@drawable/abs__btn_cab_done_holo_light</item>
129
    </style>
130
131
    <style name="Widget.Sherlock.ActionButton.Overflow">
132
        <item name="android:src">@drawable/abs__ic_menu_moreoverflow_holo_dark</item>
133
        <item name="android:background">?attr/actionBarItemBackground</item>
134
        <item name="android:contentDescription">@string/abs__action_menu_overflow_description</item>
135
    </style>
136
    <style name="Widget.Sherlock.Light.ActionButton.Overflow">
137
        <item name="android:src">@drawable/abs__ic_menu_moreoverflow_holo_light</item>
138
    </style>
139
140
    <style name="Sherlock.__Widget.ActionMode" parent="Widget">
141
        <item name="background">?attr/actionModeBackground</item>
142
        <item name="backgroundSplit">?attr/actionModeSplitBackground</item>
143
        <item name="height">?attr/actionBarSize</item>
144
    </style>
145
    <style name="Widget.Sherlock.ActionMode" parent="Sherlock.__Widget.ActionMode">
146
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Title</item>
147
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Subtitle</item>
148
    </style>
149
    <style name="Widget.Sherlock.Light.ActionMode" parent="Widget.Sherlock.ActionMode">
150
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Title</item>
151
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Subtitle</item>
152
    </style>
153
    <style name="Widget.Sherlock.Light.ActionMode.Inverse" parent="Sherlock.__Widget.ActionMode">
154
        <item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Title.Inverse</item>
155
        <item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Subtitle.Inverse</item>
156
    </style>
157
158
159
    <style name="Widget.Sherlock.ListPopupWindow" parent="Widget">
160
        <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_dark</item>
161
        <item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_dark</item>
162
        <item name="android:dropDownVerticalOffset">0dip</item>
163
        <item name="android:dropDownHorizontalOffset">0dip</item>
164
        <item name="android:dropDownWidth">wrap_content</item>
165
    </style>
166
    <style name="Widget.Sherlock.Light.ListPopupWindow" parent="Widget">
167
        <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_light</item>
168
        <item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_light</item>
169
        <item name="android:dropDownVerticalOffset">0dip</item>
170
        <item name="android:dropDownHorizontalOffset">0dip</item>
171
        <item name="android:dropDownWidth">wrap_content</item>
172
    </style>
173
    <style name="Widget.Sherlock.PopupMenu" parent="Widget.Sherlock.ListPopupWindow">
174
    </style>
175
    <style name="Widget.Sherlock.Light.PopupMenu" parent="Widget.Sherlock.Light.ListPopupWindow">
176
    </style>
177
178
179
    <style name="Sherlock.__Widget.ActivityChooserView" parent="Widget">
180
        <item name="android:gravity">center</item>
181
        <item name="android:background">@drawable/abs__ab_share_pack_holo_dark</item>
182
        <item name="android:divider">?attr/dividerVertical</item>
183
        <item name="android:showDividers">middle</item>
184
        <item name="android:dividerPadding">6dip</item>
185
        <item name="android:minHeight">?attr/actionBarSize</item>
186
    </style>
187
    <style name="Widget.Sherlock.ActivityChooserView" parent="Sherlock.__Widget.ActivityChooserView">
188
    </style>
189
    <style name="Widget.Sherlock.Light.ActivityChooserView" parent="Widget.Sherlock.ActivityChooserView">
190
        <item name="android:background">@drawable/abs__ab_share_pack_holo_light</item>
191
    </style>
192
193
    <style name="Widget.Sherlock.Button.Small" parent="Widget">
194
      <item name="android:textAppearance">?attr/textAppearanceSmall</item>
195
      <item name="android:textColor">@color/abs__primary_text_holo_dark</item>
196
      <item name="android:minHeight">48dip</item>
197
      <item name="android:minWidth">48dip</item>
198
    </style>
199
    <style name="Widget.Sherlock.Light.Button.Small" parent="Widget">
200
      <item name="android:textAppearance">?attr/textAppearanceSmall</item>
201
      <item name="android:textColor">@color/abs__primary_text_holo_light</item>
202
      <item name="android:minHeight">48dip</item>
203
      <item name="android:minWidth">48dip</item>
204
    </style>
205
206
207
    <style name="Sherlock.__Widget.Holo.Spinner" parent="Widget">
208
        <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_dark</item>
209
        <item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_dark</item>
210
        <item name="android:dropDownVerticalOffset">0dip</item>
211
        <item name="android:dropDownHorizontalOffset">0dip</item>
212
        <item name="android:dropDownWidth">wrap_content</item>
213
        <item name="android:gravity">left|center_vertical</item>
214
        <item name="android:spinnerMode">dropdown</item>
215
        <item name="android:clickable">true</item>
216
    </style>
217
    <style name="Widget.Sherlock.Spinner.DropDown.ActionBar" parent="Sherlock.__Widget.Holo.Spinner">
218
        <item name="android:background">@drawable/abs__spinner_ab_holo_dark</item>
219
    </style>
220
    <style name="Widget.Sherlock.Light.Spinner.DropDown.ActionBar" parent="Sherlock.__Widget.Holo.Spinner">
221
        <item name="android:background">@drawable/abs__spinner_ab_holo_light</item>
222
        <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_light</item>
223
        <item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_light</item>
224
    </style>
225
226
    <style name="Sherlock.__Widget.Holo.ListView" parent="android:Widget.ListView">
227
        <item name="android:divider">@drawable/abs__list_divider_holo_dark</item>
228
        <item name="android:listSelector">@drawable/abs__list_selector_holo_dark</item>
229
    </style>
230
    <style name="Widget.Sherlock.ListView.DropDown" parent="Sherlock.__Widget.Holo.ListView">
231
    </style>
232
    <style name="Widget.Sherlock.Light.ListView.DropDown" parent="Sherlock.__Widget.Holo.ListView">
233
        <item name="android:divider">@drawable/abs__list_divider_holo_light</item>
234
        <item name="android:listSelector">@drawable/abs__list_selector_holo_light</item>
235
    </style>
236
237
    <style name="Sherlock.__Widget.Holo.DropDownItem" parent="Widget">
238
        <item name="android:textAppearance">@style/TextAppearance.Sherlock.Widget.DropDownItem</item>
239
        <item name="android:paddingLeft">8dp</item>
240
        <item name="android:paddingRight">8dp</item>
241
        <item name="android:gravity">center_vertical</item>
242
    </style>
243
    <style name="Widget.Sherlock.DropDownItem.Spinner" parent="Sherlock.__Widget.Holo.DropDownItem">
244
    </style>
245
    <style name="Widget.Sherlock.Light.DropDownItem.Spinner" parent="Sherlock.__Widget.Holo.DropDownItem">
246
    </style>
247
248
    <style name="Widget.Sherlock.PopupWindow.ActionMode" parent="Widget">
249
    </style>
250
    <style name="Widget.Sherlock.Light.PopupWindow.ActionMode" parent="Widget">
251
        <item name="android:popupBackground">@android:color/white</item>
252
    </style>
253
254
255
256
    <style name="Widget.Sherlock.ProgressBar" parent="android:Widget.ProgressBar">
257
        <item name="android:indeterminateDrawable">@drawable/abs__progress_medium_holo</item>
258
        <item name="android:animationResolution">33</item>
259
    </style>
260
    <style name="Widget.Sherlock.Light.ProgressBar" parent="Widget.Sherlock.ProgressBar">
261
    </style>
262
263
    <style name="Widget.Sherlock.ProgressBar.Horizontal" parent="android:Widget.ProgressBar.Horizontal">
264
        <item name="android:progressDrawable">@drawable/abs__progress_horizontal_holo_dark</item>
265
        <!--item name="android:indeterminateDrawable">@drawable/abs__progress_indeterminate_horizontal_holo</item-->
266
        <item name="android:minHeight">16dip</item>
267
        <item name="android:maxHeight">16dip</item>
268
    </style>
269
    <style name="Widget.Sherlock.Light.ProgressBar.Horizontal" parent="Widget.Sherlock.ProgressBar.Horizontal">
270
        <item name="android:progressDrawable">@drawable/abs__progress_horizontal_holo_light</item>
271
    </style>
272
273
274
275
    <style name="Widget.Sherlock.TextView.SpinnerItem" parent="Widget">
276
        <item name="android:textAppearance">@style/TextAppearance.Sherlock.Widget.TextView.SpinnerItem</item>
277
        <item name="android:paddingLeft">8dp</item>
278
        <item name="android:paddingRight">8dp</item>
279
    </style>
280
281
282
283
    <style name="Sherlock.__Widget.SearchAutoCompleteTextView" parent="Widget">
284
        <item name="android:focusable">true</item>
285
        <item name="android:focusableInTouchMode">true</item>
286
        <item name="android:clickable">true</item>
287
        <item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
288
        <item name="android:textColor">?attr/textColorPrimary</item>
289
        <item name="android:gravity">center_vertical</item>
290
        <item name="android:completionHintView">@layout/abs__simple_dropdown_hint</item>
291
        <item name="android:completionThreshold">2</item>
292
        <item name="android:dropDownWidth">wrap_content</item>
293
    </style>
294
    <style name="Widget.Sherlock.SearchAutoCompleteTextView" parent="Sherlock.__Widget.SearchAutoCompleteTextView">
295
        <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_dark</item>
296
        <item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_dark</item>
297
    </style>
298
    <style name="Widget.Sherlock.Light.SearchAutoCompleteTextView" parent="Sherlock.__Widget.SearchAutoCompleteTextView">
299
        <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_light</item>
300
        <item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_light</item>
301
    </style>
302
303
304
305
    <style name="TextAppearance.Sherlock.Widget.ActionBar.Menu" parent="Widget">
306
        <item name="android:textSize">12sp</item>
307
        <item name="android:textStyle">bold</item>
308
        <item name="android:textColor">?attr/actionMenuTextColor</item>
309
        <item name="android:textAllCaps">@bool/abs__config_actionMenuItemAllCaps</item>
310
    </style>
311
312
    <style name="TextAppearance.Sherlock.Widget.ActionBar.Title" parent="Widget">
313
        <item name="android:textSize">@dimen/abs__action_bar_title_text_size</item>
314
        <item name="android:textColor">?android:attr/textColorPrimary</item>
315
    </style>
316
    <style name="TextAppearance.Sherlock.Widget.ActionBar.Title.Inverse" parent="Widget">
317
        <item name="android:textSize">@dimen/abs__action_bar_title_text_size</item>
318
        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
319
    </style>
320
    <style name="TextAppearance.Sherlock.Widget.ActionBar.Subtitle" parent="Widget">
321
        <item name="android:textSize">@dimen/abs__action_bar_subtitle_text_size</item>
322
        <item name="android:textColor">?android:attr/textColorSecondary</item>
323
    </style>
324
    <style name="TextAppearance.Sherlock.Widget.ActionBar.Subtitle.Inverse" parent="Widget">
325
        <item name="android:textSize">@dimen/abs__action_bar_subtitle_text_size</item>
326
        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
327
    </style>
328
    <style name="TextAppearance.Sherlock.Widget.ActionMode.Title" parent="Widget">
329
        <item name="android:textSize">@dimen/abs__action_bar_title_text_size</item>
330
        <item name="android:textColor">?android:attr/textColorPrimary</item>
331
    </style>
332
    <style name="TextAppearance.Sherlock.Widget.ActionMode.Title.Inverse" parent="Widget">
333
        <item name="android:textSize">@dimen/abs__action_bar_title_text_size</item>
334
        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
335
    </style>
336
    <style name="TextAppearance.Sherlock.Widget.ActionMode.Subtitle" parent="Widget">
337
        <item name="android:textSize">@dimen/abs__action_bar_subtitle_text_size</item>
338
        <item name="android:textColor">?android:attr/textColorSecondary</item>
339
    </style>
340
    <style name="TextAppearance.Sherlock.Widget.ActionMode.Subtitle.Inverse" parent="Widget">
341
        <item name="android:textSize">@dimen/abs__action_bar_subtitle_text_size</item>
342
        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
343
    </style>
344
345
    <style name="TextAppearance.Sherlock.Widget.PopupMenu" parent="Widget">
346
        <item name="android:textColor">?attr/textColorPrimary</item>
347
    </style>
348
    <style name="TextAppearance.Sherlock.Widget.PopupMenu.Large">
349
        <item name="android:textSize">18sp</item>
350
    </style>
351
    <style name="TextAppearance.Sherlock.Light.Widget.PopupMenu.Large" parent="TextAppearance.Sherlock.Widget.PopupMenu.Large">
352
    </style>
353
    <style name="TextAppearance.Sherlock.Widget.PopupMenu.Small">
354
        <item name="android:textSize">14sp</item>
355
    </style>
356
    <style name="TextAppearance.Sherlock.Light.Widget.PopupMenu.Small" parent="TextAppearance.Sherlock.Widget.PopupMenu.Small">
357
    </style>
358
359
    <style name="TextAppearance.Sherlock.Widget.TextView.SpinnerItem" parent="Widget">
360
        <item name="android:textColor">?textColorPrimary</item>
361
        <item name="android:textSize">16sp</item>
362
        <item name="android:textStyle">normal</item>
363
    </style>
364
365
    <style name="TextAppearance.Sherlock.Widget.DropDownItem" parent="Widget">
366
        <item name="android:textColor">?textColorPrimaryDisableOnly</item>
367
        <item name="android:textSize">16sp</item>
368
        <item name="android:textStyle">normal</item>
369
    </style>
370
371
    <style name="Sherlock.__TextAppearance.Small" parent="Widget">
372
      <item name="android:textSize">14sp</item>
373
      <item name="android:textColor">?android:attr/textColorSecondary</item>
374
    </style>
375
    <style name="TextAppearance.Sherlock.Small" parent="Sherlock.__TextAppearance.Small">
376
    </style>
377
    <style name="TextAppearance.Sherlock.Light.Small" parent="TextAppearance.Sherlock.Small">
378
    </style>
379
380
    <style name="TextAppearance.Sherlock.Widget.DropDownHint" parent="Widget">
381
        <item name="android:textColor">?textColorPrimary</item>
382
        <item name="android:textSize">14sp</item>
383
    </style>
384
385
    <style name="TextAppearance.Sherlock" parent="@android:style/TextAppearance"/>
386
387
    <style name="TextAppearance.Sherlock.SearchResult">
388
        <item name="android:textStyle">normal</item>
389
        <item name="android:textColor">?android:attr/textColorPrimary</item>
390
        <item name="android:textColorHint">?android:attr/textColorHint</item>
391
    </style>
392
393
    <style name="TextAppearance.Sherlock.SearchResult.Title">
394
        <item name="android:textSize">18sp</item>
395
    </style>
396
397
    <style name="TextAppearance.Sherlock.SearchResult.Subtitle">
398
        <item name="android:textSize">14sp</item>
399
        <item name="android:textColor">?android:attr/textColorSecondary</item>
400
    </style>
401
402
    <style name="TextAppearance.Sherlock.Light.SearchResult" parent="TextAppearance.Sherlock.SearchResult"/>
403
404
    <style name="TextAppearance.Sherlock.Light.SearchResult.Title">
405
        <item name="android:textSize">18sp</item>
406
    </style>
407
408
    <style name="TextAppearance.Sherlock.Light.SearchResult.Subtitle">
409
        <item name="android:textSize">14sp</item>
410
        <item name="android:textColor">?android:attr/textColorSecondary</item>
411
    </style>
412
</resources>

+ 207 - 0
wade-mobile-lib/res/values/abs__themes.xml

@ -0,0 +1,207 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<resources>
4
    <style name="Sherlock.__Theme" parent="android:Theme.NoTitleBar">
5
        <item name="android:windowContentOverlay">@null</item>
6
    </style>
7
    <style name="Sherlock.__Theme.Light" parent="android:Theme.Light.NoTitleBar">
8
        <item name="android:windowContentOverlay">@null</item>
9
    </style>
10
    <style name="Sherlock.__Theme.DarkActionBar" parent="Theme.Sherlock.Light">
11
    </style>
12
13
    <style name="Theme.Sherlock" parent="Sherlock.__Theme">
14
        <!-- Action bar styles (from Theme.Holo) -->
15
        <item name="actionDropDownStyle">@style/Widget.Sherlock.Spinner.DropDown.ActionBar</item>
16
        <item name="actionButtonStyle">@style/Widget.Sherlock.ActionButton</item>
17
        <item name="actionOverflowButtonStyle">@style/Widget.Sherlock.ActionButton.Overflow</item>
18
        <item name="actionModeBackground">@drawable/abs__cab_background_top_holo_dark</item>
19
        <item name="actionModeSplitBackground">@drawable/abs__cab_background_bottom_holo_dark</item>
20
        <item name="actionModeCloseDrawable">@drawable/abs__ic_cab_done_holo_dark</item>
21
        <item name="actionBarTabStyle">@style/Widget.Sherlock.ActionBar.TabView</item>
22
        <item name="actionBarTabBarStyle">@style/Widget.Sherlock.ActionBar.TabBar</item>
23
        <item name="actionBarTabTextStyle">@style/Widget.Sherlock.ActionBar.TabText</item>
24
        <item name="actionModeStyle">@style/Widget.Sherlock.ActionMode</item>
25
        <item name="actionModeCloseButtonStyle">@style/Widget.Sherlock.ActionButton.CloseMode</item>
26
        <item name="actionBarStyle">@style/Widget.Sherlock.ActionBar</item>
27
        <item name="actionBarSize">@dimen/abs__action_bar_default_height</item>
28
        <!-- Internal --><item name="actionModePopupWindowStyle">@style/Widget.Sherlock.PopupWindow.ActionMode</item>
29
        <item name="actionBarWidgetTheme">@null</item>
30
31
        <!-- Action bar styles (defaults from Theme) -->
32
        <item name="actionBarSplitStyle">?attr/actionBarStyle</item>
33
        <item name="actionMenuTextAppearance">@style/TextAppearance.Sherlock.Widget.ActionBar.Menu</item>
34
        <item name="actionMenuTextColor">?attr/textColorPrimary</item>
35
        <item name="actionBarDivider">?attr/dividerVertical</item>
36
        <item name="actionBarItemBackground">?attr/selectableItemBackground</item>
37
38
        <item name="buttonStyleSmall">@style/Widget.Sherlock.Button.Small</item>
39
40
        <item name="selectableItemBackground">@drawable/abs__item_background_holo_dark</item>
41
42
        <item name="activatedBackgroundIndicator">@drawable/abs__activated_background_holo_dark</item>
43
        <item name="actionModeShareDrawable">@drawable/abs__ic_menu_share_holo_dark</item>
44
        <item name="activityChooserViewStyle">@style/Widget.Sherlock.ActivityChooserView</item>
45
46
        <item name="homeAsUpIndicator">@drawable/abs__ic_ab_back_holo_dark</item>
47
48
        <item name="dividerVertical">@drawable/abs__list_divider_holo_dark</item>
49
50
        <item name="spinnerDropDownItemStyle">@style/Widget.Sherlock.DropDownItem.Spinner</item>
51
        <item name="spinnerItemStyle">@style/Widget.Sherlock.TextView.SpinnerItem</item>
52
53
        <item name="textColorPrimary">@color/abs__primary_text_holo_dark</item>
54
        <item name="textColorPrimaryDisableOnly">@color/abs__primary_text_disable_only_holo_dark</item>
55
        <item name="textColorPrimaryInverse">@color/abs__primary_text_holo_light</item>
56
57
        <!-- Internal --><item name="dropdownListPreferredItemHeight">48dip</item>
58
        <item name="dropDownListViewStyle">@style/Widget.Sherlock.ListView.DropDown</item>
59
60
        <item name="textAppearanceSmall">@style/TextAppearance.Sherlock.Small</item>
61
        <item name="textAppearanceLargePopupMenu">@style/TextAppearance.Sherlock.Widget.PopupMenu.Large</item>
62
        <item name="textAppearanceSmallPopupMenu">@style/TextAppearance.Sherlock.Widget.PopupMenu.Small</item>
63
        <item name="textAppearanceSearchResultTitle">@style/TextAppearance.Sherlock.SearchResult.Title</item>
64
        <item name="textAppearanceSearchResultSubtitle">@style/TextAppearance.Sherlock.SearchResult.Subtitle</item>
65
66
        <item name="popupMenuStyle">@style/Widget.Sherlock.PopupMenu</item>
67
        <!-- Internal --><item name="listPopupWindowStyle">@style/Widget.Sherlock.ListPopupWindow</item>
68
69
        <item name="searchDropdownBackground">@drawable/abs__search_dropdown_dark</item>
70
        <item name="searchViewTextField">@drawable/abs__textfield_searchview_holo_dark</item>
71
        <item name="searchViewTextFieldRight">@drawable/abs__textfield_searchview_right_holo_dark</item>
72
        <item name="searchViewCloseIcon">@drawable/abs__ic_clear</item>
73
        <item name="searchViewSearchIcon">@drawable/abs__ic_search</item>
74
        <item name="searchViewGoIcon">@drawable/abs__ic_go</item>
75
        <item name="searchViewVoiceIcon">@drawable/abs__ic_voice_search</item>
76
        <item name="searchAutoCompleteTextView">@style/Widget.Sherlock.SearchAutoCompleteTextView</item>
77
        <item name="dropDownHintAppearance">@style/TextAppearance.Sherlock.Widget.DropDownHint</item>
78
        <item name="searchViewEditQuery">@drawable/abs__ic_commit_search_api_holo_dark</item>
79
        <item name="searchViewEditQueryBackground">?selectableItemBackground</item>
80
        <item name="searchResultListItemHeight">58dp</item>
81
82
        <item name="windowNoTitle">false</item>
83
        <item name="windowActionBar">true</item>
84
        <item name="windowActionModeOverlay">false</item>
85
        <item name="windowContentOverlay">@null</item>
86
    </style>
87
    <style name="Theme.Sherlock.Light" parent="Sherlock.__Theme.Light">
88
        <!-- Action bar styles (from Theme.Holo) -->
89
        <item name="actionDropDownStyle">@style/Widget.Sherlock.Light.Spinner.DropDown.ActionBar</item>
90
        <item name="actionButtonStyle">@style/Widget.Sherlock.Light.ActionButton</item>
91
        <item name="actionOverflowButtonStyle">@style/Widget.Sherlock.Light.ActionButton.Overflow</item>
92
        <item name="actionModeBackground">@drawable/abs__cab_background_top_holo_light</item>
93
        <item name="actionModeSplitBackground">@drawable/abs__cab_background_bottom_holo_light</item>
94
        <item name="actionModeCloseDrawable">@drawable/abs__ic_cab_done_holo_light</item>
95
        <item name="actionBarTabStyle">@style/Widget.Sherlock.Light.ActionBar.TabView</item>
96
        <item name="actionBarTabBarStyle">@style/Widget.Sherlock.Light.ActionBar.TabBar</item>
97
        <item name="actionBarTabTextStyle">@style/Widget.Sherlock.Light.ActionBar.TabText</item>
98
        <item name="actionModeStyle">@style/Widget.Sherlock.Light.ActionMode</item>
99
        <item name="actionModeCloseButtonStyle">@style/Widget.Sherlock.Light.ActionButton.CloseMode</item>
100
        <item name="actionBarStyle">@style/Widget.Sherlock.Light.ActionBar.Solid</item>
101
        <item name="actionBarSize">@dimen/abs__action_bar_default_height</item>
102
        <!-- Internal --><item name="actionModePopupWindowStyle">@style/Widget.Sherlock.Light.PopupWindow.ActionMode</item>
103
        <item name="actionBarWidgetTheme">@null</item>
104
105
        <!-- Action bar styles (defaults from Theme) -->
106
        <item name="actionBarSplitStyle">?attr/actionBarStyle</item>
107
        <item name="actionMenuTextAppearance">@style/TextAppearance.Sherlock.Widget.ActionBar.Menu</item>
108
        <item name="actionMenuTextColor">?attr/textColorPrimary</item>
109
        <item name="actionBarDivider">?attr/dividerVertical</item>
110
        <item name="actionBarItemBackground">?attr/selectableItemBackground</item>
111
112
        <item name="buttonStyleSmall">@style/Widget.Sherlock.Light.Button.Small</item>
113
114
        <item name="selectableItemBackground">@drawable/abs__item_background_holo_light</item>
115
116
        <item name="activatedBackgroundIndicator">@drawable/abs__activated_background_holo_light</item>
117
        <item name="actionModeShareDrawable">@drawable/abs__ic_menu_share_holo_light</item>
118
        <item name="activityChooserViewStyle">@style/Widget.Sherlock.Light.ActivityChooserView</item>
119
120
        <item name="homeAsUpIndicator">@drawable/abs__ic_ab_back_holo_light</item>
121
122
        <item name="dividerVertical">@drawable/abs__list_divider_holo_light</item>
123
124
        <item name="spinnerDropDownItemStyle">@style/Widget.Sherlock.Light.DropDownItem.Spinner</item>
125
        <item name="spinnerItemStyle">@style/Widget.Sherlock.TextView.SpinnerItem</item>
126
127
        <item name="textColorPrimary">@color/abs__primary_text_holo_light</item>
128
        <item name="textColorPrimaryDisableOnly">@color/abs__primary_text_disable_only_holo_light</item>
129
        <item name="textColorPrimaryInverse">@color/abs__primary_text_holo_dark</item>
130
131
        <!-- Internal --><item name="dropdownListPreferredItemHeight">48dip</item>
132
        <item name="dropDownListViewStyle">@style/Widget.Sherlock.Light.ListView.DropDown</item>
133
134
        <item name="textAppearanceSmall">@style/TextAppearance.Sherlock.Light.Small</item>
135
        <item name="textAppearanceLargePopupMenu">@style/TextAppearance.Sherlock.Light.Widget.PopupMenu.Large</item>
136
        <item name="textAppearanceSmallPopupMenu">@style/TextAppearance.Sherlock.Light.Widget.PopupMenu.Small</item>
137
        <item name="textAppearanceSearchResultTitle">@style/TextAppearance.Sherlock.Light.SearchResult.Title</item>
138
        <item name="textAppearanceSearchResultSubtitle">@style/TextAppearance.Sherlock.Light.SearchResult.Subtitle</item>
139
140
        <item name="popupMenuStyle">@style/Widget.Sherlock.Light.PopupMenu</item>
141
        <!-- Internal --><item name="listPopupWindowStyle">@style/Widget.Sherlock.Light.ListPopupWindow</item>
142
143
        <item name="searchDropdownBackground">@drawable/abs__search_dropdown_light</item>
144
        <item name="searchViewTextField">@drawable/abs__textfield_searchview_holo_light</item>
145
        <item name="searchViewTextFieldRight">@drawable/abs__textfield_searchview_right_holo_light</item>
146
        <item name="searchViewCloseIcon">@drawable/abs__ic_clear_holo_light</item>
147
        <item name="searchViewSearchIcon">@drawable/abs__ic_search_api_holo_light</item>
148
        <item name="searchViewGoIcon">@drawable/abs__ic_go_search_api_holo_light</item>
149
        <item name="searchViewVoiceIcon">@drawable/abs__ic_voice_search_api_holo_light</item>
150
        <item name="searchAutoCompleteTextView">@style/Widget.Sherlock.Light.SearchAutoCompleteTextView</item>
151
        <item name="dropDownHintAppearance">@style/TextAppearance.Sherlock.Widget.DropDownHint</item>
152
        <item name="searchViewEditQuery">@drawable/abs__ic_commit_search_api_holo_light</item>
153
        <item name="searchViewEditQueryBackground">?selectableItemBackground</item>
154
        <item name="searchResultListItemHeight">58dp</item>
155
156
        <item name="windowNoTitle">false</item>
157
        <item name="windowActionBar">true</item>
158
        <item name="windowActionModeOverlay">false</item>
159
        <item name="windowContentOverlay">@null</item>
160
    </style>
161
    <style name="Theme.Sherlock.Light.DarkActionBar" parent="Sherlock.__Theme.DarkActionBar">
162
        <item name="windowContentOverlay">@drawable/abs__ab_solid_shadow_holo</item>
163
        <item name="actionBarStyle">@style/Widget.Sherlock.Light.ActionBar.Solid.Inverse</item>
164
        <item name="actionBarWidgetTheme">@style/Theme.Sherlock</item>
165
166
        <item name="actionDropDownStyle">@style/Widget.Sherlock.Spinner.DropDown.ActionBar</item>
167
        <item name="actionButtonStyle">@style/Widget.Sherlock.ActionButton</item>
168
        <item name="actionOverflowButtonStyle">@style/Widget.Sherlock.ActionButton.Overflow</item>
169
        <item name="actionModeBackground">@drawable/abs__cab_background_top_holo_dark</item>
170
        <item name="actionModeSplitBackground">@drawable/abs__cab_background_bottom_holo_dark</item>
171
        <item name="actionModeCloseDrawable">@drawable/abs__ic_cab_done_holo_dark</item>
172
        <item name="homeAsUpIndicator">@drawable/abs__ic_ab_back_holo_dark</item>
173
        <item name="actionBarTabStyle">@style/Widget.Sherlock.Light.ActionBar.TabView.Inverse</item>
174
        <item name="actionBarTabBarStyle">@style/Widget.Sherlock.Light.ActionBar.TabBar.Inverse</item>
175
        <item name="actionBarTabTextStyle">@style/Widget.Sherlock.Light.ActionBar.TabText.Inverse</item>
176
        <item name="actionBarDivider">@drawable/abs__list_divider_holo_dark</item>
177
        <item name="actionBarItemBackground">@drawable/abs__item_background_holo_dark</item>
178
        <item name="actionMenuTextColor">?attr/textColorPrimaryInverse</item>
179
        <item name="actionModeStyle">@style/Widget.Sherlock.Light.ActionMode.Inverse</item>
180
        <item name="actionModeCloseButtonStyle">@style/Widget.Sherlock.ActionButton.CloseMode</item>
181
        <item name="actionModePopupWindowStyle">@style/Widget.Sherlock.PopupWindow.ActionMode</item>
182
183
        <item name="actionModeShareDrawable">@drawable/abs__ic_menu_share_holo_dark</item>
184
185
        <!-- We want the dark action bar SearchView stuff -->
186
        <item name="searchDropdownBackground">@drawable/abs__search_dropdown_dark</item>
187
        <item name="searchViewTextField">@drawable/abs__textfield_searchview_holo_dark</item>
188
        <item name="searchViewTextFieldRight">@drawable/abs__textfield_searchview_right_holo_dark</item>
189
        <item name="searchViewCloseIcon">@drawable/abs__ic_clear</item>
190
        <item name="searchViewSearchIcon">@drawable/abs__ic_search</item>
191
        <item name="searchViewGoIcon">@drawable/abs__ic_go</item>
192
        <item name="searchViewVoiceIcon">@drawable/abs__ic_voice_search</item>
193
        <item name="searchAutoCompleteTextView">@style/Widget.Sherlock.SearchAutoCompleteTextView</item>
194
        <item name="dropDownHintAppearance">@style/TextAppearance.Sherlock.Widget.DropDownHint</item>
195
        <item name="searchViewEditQuery">@drawable/abs__ic_commit_search_api_holo_dark</item>
196
    </style>
197
198
199
    <style name="Theme.Sherlock.NoActionBar">
200
        <item name="windowActionBar">false</item>
201
        <item name="windowNoTitle">true</item>
202
    </style>
203
    <style name="Theme.Sherlock.Light.NoActionBar">
204
        <item name="windowActionBar">false</item>
205
        <item name="windowNoTitle">true</item>
206
    </style>
207
</resources>

包路径优化第四轮 · 97795c5b9b - Nuosi Git Service
ソースを参照

包路径优化第四轮

huangbo 8 年 前
コミット
97795c5b9b
共有75 個のファイルを変更した815 個の追加3 個の削除を含む
  1. 9 0
      ipu-mobile-common/.classpath
  2. 3 0
      ipu-mobile-common/.gitignore
  3. 10 0
      ipu-mobile-common/AndroidManifest.xml
  4. BIN
      ipu-mobile-common/libs/arm64-v8a/libCpuArchitecture.so
  5. BIN
      ipu-mobile-common/libs/armeabi-v7a/libCpuArchitecture.so
  6. BIN
      ipu-mobile-common/libs/armeabi/libCpuArchitecture.so
  7. BIN
      ipu-mobile-common/libs/ipu-basic-3.0.jar
  8. BIN
      ipu-mobile-common/libs/ipu-common-3.0.jar
  9. BIN
      ipu-mobile-common/libs/ipu-count-client-3.0.jar
  10. BIN
      ipu-mobile-common/libs/ipu-mobile-basic-3.0.jar
  11. BIN
      ipu-mobile-common/libs/ipu-mobile-framework-3.0.jar
  12. BIN
      ipu-mobile-common/libs/ipu-mobile-ui-3.0.jar
  13. BIN
      ipu-mobile-common/libs/ipu-plugin-basic-3.0.jar
  14. BIN
      ipu-mobile-common/libs/ipu-plugin-extend.jar
  15. BIN
      ipu-mobile-common/libs/mips/libCpuArchitecture.so
  16. BIN
      ipu-mobile-common/libs/mips64/libCpuArchitecture.so
  17. BIN
      ipu-mobile-common/libs/wade-mobile-data.jar
  18. BIN
      ipu-mobile-common/libs/x86/libCpuArchitecture.so
  19. BIN
      ipu-mobile-common/libs/x86_64/libCpuArchitecture.so
  20. 20 0
      ipu-mobile-common/proguard-project.txt
  21. 14 0
      ipu-mobile-common/project.properties
  22. 37 0
      ipu-mobile-common/res/anim/hyperspace_in.xml
  23. 36 0
      ipu-mobile-common/res/anim/hyperspace_out.xml
  24. 11 0
      ipu-mobile-common/res/anim/push_left_in.xml
  25. 11 0
      ipu-mobile-common/res/anim/push_left_out.xml
  26. 11 0
      ipu-mobile-common/res/anim/push_right_in.xml
  27. 11 0
      ipu-mobile-common/res/anim/push_right_out.xml
  28. 14 0
      ipu-mobile-common/res/anim/scale_action.xml
  29. 15 0
      ipu-mobile-common/res/anim/shut_open_in.xml
  30. 14 0
      ipu-mobile-common/res/anim/shut_open_out.xml
  31. 16 0
      ipu-mobile-common/res/drawable/audio_activity_dialog.xml
  32. 6 0
      ipu-mobile-common/res/drawable/keyboard_key.xml
  33. BIN
      ipu-mobile-common/res/drawable/keyboard_normal_bg.9.png
  34. BIN
      ipu-mobile-common/res/drawable/keyboard_normal_hl_bg.9.png
  35. 73 0
      ipu-mobile-common/res/drawable/keyboard_qwerty.xml
  36. BIN
      ipu-mobile-common/res/drawable/keyboard_sym_delete.png
  37. BIN
      ipu-mobile-common/res/drawable/keyboard_sym_shift.png
  38. BIN
      ipu-mobile-common/res/drawable/keyboard_sym_space.png
  39. 59 0
      ipu-mobile-common/res/drawable/keyboard_symbols.xml
  40. BIN
      ipu-mobile-common/res/drawable/nfc_bg.png
  41. BIN
      ipu-mobile-common/res/drawable/record_mic_normal.png
  42. BIN
      ipu-mobile-common/res/drawable/record_mic_press.png
  43. BIN
      ipu-mobile-common/res/drawable/screenlock_arrow.png
  44. BIN
      ipu-mobile-common/res/drawable/screenlock_line.png
  45. BIN
      ipu-mobile-common/res/drawable/screenlock_line_error.png
  46. BIN
      ipu-mobile-common/res/drawable/screenlock_line_semicircle.png
  47. BIN
      ipu-mobile-common/res/drawable/screenlock_line_semicircle_error.png
  48. BIN
      ipu-mobile-common/res/drawable/screenlock_round_click.png
  49. BIN
      ipu-mobile-common/res/drawable/screenlock_round_click_error.png
  50. BIN
      ipu-mobile-common/res/drawable/screenlock_round_original.png
  51. BIN
      ipu-mobile-common/res/drawable/screenlock_welcome_bg.9.png
  52. 17 0
      ipu-mobile-common/res/drawable/share_apk_activity_dialog.xml
  53. 21 0
      ipu-mobile-common/res/layout/audio_recorder.xml
  54. 77 0
      ipu-mobile-common/res/layout/browser.xml
  55. 23 0
      ipu-mobile-common/res/layout/keyboard.xml
  56. 23 0
      ipu-mobile-common/res/layout/nfcard.xml
  57. 36 0
      ipu-mobile-common/res/layout/screenlock_login_layout2.xml
  58. 28 0
      ipu-mobile-common/res/layout/screenlock_reset_lock_layout.xml
  59. 77 0
      ipu-mobile-common/res/layout/share_apk_activity.xml
  60. 39 0
      ipu-mobile-common/res/layout/share_apk_device_list_item.xml
  61. BIN
      ipu-mobile-common/res/raw/beep.ogg
  62. 11 0
      ipu-mobile-common/res/values-v11/styles.xml
  63. 12 0
      ipu-mobile-common/res/values-v14/styles.xml
  64. 3 0
      ipu-mobile-common/res/values/strings.xml
  65. 5 0
      ipu-mobile-common/res/values/strings_audio.xml
  66. 8 0
      ipu-mobile-common/res/values/strings_browser.xml
  67. 5 0
      ipu-mobile-common/res/values/strings_nfc.xml
  68. 10 0
      ipu-mobile-common/res/values/strings_share_apk.xml
  69. 9 0
      ipu-mobile-common/res/values/style_audio.xml
  70. 7 0
      ipu-mobile-common/res/values/style_custom_dialog.xml
  71. 7 0
      ipu-mobile-common/res/values/style_share_apk.xml
  72. 7 0
      ipu-mobile-common/res/values/style_sliding_menu.xml
  73. 20 0
      ipu-mobile-common/res/values/styles.xml
  74. BIN
      ipu-mobile-libs/bin/ipu-mobile-libs.jar
  75. 0 3
      ipu-mobile-libs/bin/jarlist.cache

+ 9 - 0
ipu-mobile-common/.classpath

@ -0,0 +1,9 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="src" path="gen"/>
5
	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7
	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
8
	<classpathentry kind="output" path="bin/classes"/>
9
</classpath>

+ 3 - 0
ipu-mobile-common/.gitignore

@ -0,0 +1,3 @@
1
/bin/
2
/gen/
3
/.settings/

+ 10 - 0
ipu-mobile-common/AndroidManifest.xml

@ -0,0 +1,10 @@
1
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
    package="com.ai.ipu.mobile.common"
3
    android:versionCode="1"
4
    android:versionName="1.0" >
5

6
    <uses-sdk
7
        android:minSdkVersion="8"
8
        android:targetSdkVersion="22" />
9

10
</manifest>

BIN
ipu-mobile-common/libs/arm64-v8a/libCpuArchitecture.so


BIN
ipu-mobile-common/libs/armeabi-v7a/libCpuArchitecture.so


BIN
ipu-mobile-common/libs/armeabi/libCpuArchitecture.so


BIN
ipu-mobile-common/libs/ipu-basic-3.0.jar


BIN
ipu-mobile-common/libs/ipu-common-3.0.jar


BIN
ipu-mobile-common/libs/ipu-count-client-3.0.jar


BIN
ipu-mobile-common/libs/ipu-mobile-basic-3.0.jar


BIN
ipu-mobile-common/libs/ipu-mobile-framework-3.0.jar


BIN
ipu-mobile-common/libs/ipu-mobile-ui-3.0.jar


BIN
ipu-mobile-common/libs/ipu-plugin-basic-3.0.jar


BIN
ipu-mobile-common/libs/ipu-plugin-extend.jar


BIN
ipu-mobile-common/libs/mips/libCpuArchitecture.so


BIN
ipu-mobile-common/libs/mips64/libCpuArchitecture.so


BIN
ipu-mobile-common/libs/wade-mobile-data.jar


BIN
ipu-mobile-common/libs/x86/libCpuArchitecture.so


BIN
ipu-mobile-common/libs/x86_64/libCpuArchitecture.so


+ 20 - 0
ipu-mobile-common/proguard-project.txt

@ -0,0 +1,20 @@
1
# To enable ProGuard in your project, edit project.properties
2
# to define the proguard.config property as described in that file.
3
#
4
# Add project specific ProGuard rules here.
5
# By default, the flags in this file are appended to flags specified
6
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7
# You can edit the include path and order by changing the ProGuard
8
# include property in project.properties.
9
#
10
# For more details, see
11
#   http://developer.android.com/guide/developing/tools/proguard.html
12
13
# Add any project specific keep options here:
14
15
# If your project uses WebView with JS, uncomment the following
16
# and specify the fully qualified class name to the JavaScript interface
17
# class:
18
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19
#   public *;
20
#}

+ 14 - 0
ipu-mobile-common/project.properties

@ -0,0 +1,14 @@
1
# This file is automatically generated by Android Tools.
2
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3
#
4
# This file must be checked in Version Control Systems.
5
#
6
# To customize properties used by the Ant build system edit
7
# "ant.properties", and override values to adapt the script to your
8
# project structure.
9
#
10
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12
13
# Project target.
14
target=android-22

+ 37 - 0
ipu-mobile-common/res/anim/hyperspace_in.xml

@ -0,0 +1,37 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android"
3
	android:shareInterpolator="false">
4
	<set android:interpolator="@android:anim/accelerate_interpolator">
5
		<scale
6
			android:fromXScale="0.0" 
7
			android:toXScale="1.4"
8
		    android:fromYScale="0.0"
9
	 		android:toYScale="0.6" 
10
	 		android:pivotX="50%" 
11
	 		android:pivotY="50%" 
12
	 		android:duration="200"
13
	 		android:startOffset="600" 
14
	 	/>
15
		<rotate 
16
			android:fromDegrees="-45" 
17
			android:toDegrees="0"
18
	 		android:toYScale="0.0" 
19
	 		android:pivotX="50%" 
20
	 		android:pivotY="50%"
21
	 		android:duration="200"
22
	 		android:startOffset="600"
23
	 	/>
24
	</set>
25
	<scale 
26
		android:interpolator="@android:anim/accelerate_decelerate_interpolator"
27
		android:fromXScale="1.4" 
28
		android:toXScale="1.0" 
29
		android:fromYScale="0.6" 
30
		android:toYScale="1.0" 
31
		android:pivotX="50%"
32
		android:pivotY="50%"
33
		android:fillAfter="false"
34
		android:duration="300"
35
		android:startOffset="800" 
36
	/>
37
</set>

+ 36 - 0
ipu-mobile-common/res/anim/hyperspace_out.xml

@ -0,0 +1,36 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
3
	<scale 
4
		android:interpolator="@android:anim/accelerate_decelerate_interpolator"
5
		android:fromXScale="1.0" 
6
		android:toXScale="1.4" 
7
		android:fromYScale="1.0" 
8
		android:toYScale="0.6" 
9
		android:pivotX="50%"
10
		android:pivotY="50%"
11
		android:fillAfter="false"
12
		android:duration="300"
13
	/>
14
	<set android:interpolator="@android:anim/accelerate_interpolator">
15
		<scale
16
			android:fromXScale="1.4" 
17
			android:toXScale="0.0"
18
	        android:fromYScale="0.6"
19
	 		android:toYScale="0.0" 
20
	 		android:pivotX="50%" 
21
	 		android:pivotY="50%" 
22
	 		android:duration="200"
23
	 		android:startOffset="300"
24
	 	/>
25
		<rotate 
26
			android:fromDegrees="0" 
27
			android:toDegrees="+45"
28
	 		android:toYScale="0.0" 
29
	 		android:pivotX="50%" 
30
	 		android:pivotY="50%"
31
	 		android:duration="200" 
32
	 		android:startOffset="300"
33
	 	/>
34
	</set>
35
</set>
36


+ 11 - 0
ipu-mobile-common/res/anim/push_left_in.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="100%p"    
5
    android:toXDelta="0"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"  
10
    android:duration="250" />   
11
</set>

+ 11 - 0
ipu-mobile-common/res/anim/push_left_out.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="0"    
5
    android:toXDelta="-100%p"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"    
10
    android:duration="250" />   
11
</set>

+ 11 - 0
ipu-mobile-common/res/anim/push_right_in.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="-100%p"    
5
    android:toXDelta="0"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"  
10
    android:duration="250" />   
11
</set>

+ 11 - 0
ipu-mobile-common/res/anim/push_right_out.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>   
2
<set xmlns:android="http://schemas.android.com/apk/res/android">   
3
    <translate   
4
    android:fromXDelta="0"    
5
    android:toXDelta="100%p"    
6
    android:duration="250"/>   
7
    <alpha   
8
    android:fromAlpha="1.0"    
9
    android:toAlpha="1.0"    
10
    android:duration="250" />   
11
</set>

+ 14 - 0
ipu-mobile-common/res/anim/scale_action.xml

@ -0,0 +1,14 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android">
3
   <scale
4
      android:interpolator="@android:anim/accelerate_decelerate_interpolator"
5
      android:fromXScale="0.0"
6
      android:toXScale="1.4"
7
      android:fromYScale="0.0"
8
      android:toYScale="1.4"
9
      android:pivotX="50%"
10
      android:pivotY="50%"
11
      android:fillAfter="false"
12
      android:duration="@android:integer/config_mediumAnimTime"/>
13
</set>
14


+ 15 - 0
ipu-mobile-common/res/anim/shut_open_in.xml

@ -0,0 +1,15 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
3
    <scale
4
        android:fromXScale="0"
5
        android:toXScale="1.0"
6
        android:fromYScale="1.0"
7
        android:toYScale="1.0"
8
        android:pivotX="50%"
9
        android:pivotY="50%"
10
        android:duration="250"
11
        android:repeatCount="0"
12
        android:startOffset="500"
13
    >
14
    </scale>
15
</set>

+ 14 - 0
ipu-mobile-common/res/anim/shut_open_out.xml

@ -0,0 +1,14 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false">
3
 	<scale
4
        android:fromXScale="1.0"
5
        android:toXScale="0"
6
        android:fromYScale="1.0"
7
        android:toYScale="1.0"
8
        android:pivotX="50%"
9
        android:pivotY="50%"
10
        android:duration="250"
11
        android:repeatCount="0"
12
    >
13
    </scale>
14
</set>

+ 16 - 0
ipu-mobile-common/res/drawable/audio_activity_dialog.xml

@ -0,0 +1,16 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:Android="http://schemas.android.com/apk/res/android" >
3
    <padding
4
        Android:bottom="5dp"
5
        Android:left="5dp"
6
        Android:right="5dp"
7
        Android:top="5dp" />
8
	<!-- 外边线 -->
9
    <stroke
10
        Android:width="1dip"
11
        Android:color="#D2AAAA" />
12
	<!-- 角上半径 -->
13
    <corners Android:radius="5dp" />
14
	<!-- 内线 -->
15
    <solid Android:color="#D2AAAA" />
16
</shape>

+ 6 - 0
ipu-mobile-common/res/drawable/keyboard_key.xml

@ -0,0 +1,6 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<selector
3
  xmlns:android="http://schemas.android.com/apk/res/android">
4
    <item android:state_pressed="true" android:drawable="@drawable/keyboard_normal_hl_bg" />
5
    <item android:drawable="@drawable/keyboard_normal_bg" />
6
</selector>

BIN
ipu-mobile-common/res/drawable/keyboard_normal_bg.9.png


BIN
ipu-mobile-common/res/drawable/keyboard_normal_hl_bg.9.png


+ 73 - 0
ipu-mobile-common/res/drawable/keyboard_qwerty.xml

@ -0,0 +1,73 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<Keyboard android:keyWidth="10.000002%p" android:keyHeight="5.5%p"
3
	android:horizontalGap="0.0px" android:verticalGap="0.0px"
4
	xmlns:android="http://schemas.android.com/apk/res/android">
5
	<Row>
6
		<Key android:codes="49" android:keyEdgeFlags="left"
7
			android:keyLabel="1" />
8
		<Key android:codes="50" android:keyLabel="2" />
9
		<Key android:codes="51" android:keyLabel="3" />
10
		<Key android:codes="52" android:keyLabel="4" />
11
		<Key android:codes="53" android:keyLabel="5" />
12
		<Key android:codes="54" android:keyLabel="6" />
13
		<Key android:codes="55" android:keyLabel="7" />
14
		<Key android:codes="56" android:keyLabel="8" />
15
		<Key android:codes="57" android:keyLabel="9" />
16
		<Key android:codes="48" android:keyEdgeFlags="right"
17
			android:keyLabel="0" />
18
	</Row>
19
	<Row>
20
		<Key android:codes="113" android:keyEdgeFlags="left"
21
			android:keyLabel="q" />
22
		<Key android:codes="119" android:keyLabel="w" />
23
		<Key android:codes="101" android:keyLabel="e" />
24
		<Key android:codes="114" android:keyLabel="r" />
25
		<Key android:codes="116" android:keyLabel="t" />
26
		<Key android:codes="121" android:keyLabel="y" />
27
		<Key android:codes="117" android:keyLabel="u" />
28
		<Key android:codes="105" android:keyLabel="i" />
29
		<Key android:codes="111" android:keyLabel="o" />
30
		<Key android:codes="112" android:keyEdgeFlags="right"
31
			android:keyLabel="p" />
32
	</Row>
33
	<Row>
34
		<Key android:horizontalGap="4.999995%p" android:codes="97"
35
			android:keyEdgeFlags="left" android:keyLabel="a" />
36
		<Key android:codes="115" android:keyLabel="s" />
37
		<Key android:codes="100" android:keyLabel="d" />
38
		<Key android:codes="102" android:keyLabel="f" />
39
		<Key android:codes="103" android:keyLabel="g" />
40
		<Key android:codes="104" android:keyLabel="h" />
41
		<Key android:codes="106" android:keyLabel="j" />
42
		<Key android:codes="107" android:keyLabel="k" />
43
		<Key android:codes="108" android:keyEdgeFlags="right"
44
			android:keyLabel="l" />
45
	</Row>
46
	<Row>
47
		<Key android:keyWidth="14.999998%p" android:codes="-1"
48
			android:keyEdgeFlags="left" android:isModifier="true"
49
			android:isSticky="true" android:keyIcon="@drawable/keyboard_sym_shift" />
50
		<Key android:codes="122" android:keyLabel="z" />
51
		<Key android:codes="120" android:keyLabel="x" />
52
		<Key android:codes="99" android:keyLabel="c" />
53
		<Key android:codes="118" android:keyLabel="v" />
54
		<Key android:codes="98" android:keyLabel="b" />
55
		<Key android:codes="110" android:keyLabel="n" />
56
		<Key android:codes="109" android:keyLabel="m" />
57
		<Key android:keyWidth="14.999998%p" android:codes="-5"
58
			android:keyEdgeFlags="right" android:isRepeatable="true"
59
			android:keyIcon="@drawable/keyboard_sym_delete" />
60
	</Row>
61
	<Row android:rowEdgeFlags="bottom">
62
		<Key android:keyWidth="20.000004%p" android:codes="-2"
63
			android:keyLabel="符号" />
64
		<Key android:keyWidth="14.999998%p" android:codes="44"
65
			android:keyLabel="," />
66
		<Key android:keyWidth="29.999996%p" android:codes="32"
67
			android:isRepeatable="true" android:keyIcon="@drawable/keyboard_sym_space" />
68
		<Key android:keyWidth="14.999998%p" android:codes="46"
69
			android:keyLabel="." />
70
		<Key android:keyWidth="20.000004%p" android:codes="-3"
71
			android:keyEdgeFlags="right" android:keyLabel="完成" />
72
	</Row>
73
</Keyboard>

BIN
ipu-mobile-common/res/drawable/keyboard_sym_delete.png


BIN
ipu-mobile-common/res/drawable/keyboard_sym_shift.png


BIN
ipu-mobile-common/res/drawable/keyboard_sym_space.png


+ 59 - 0
ipu-mobile-common/res/drawable/keyboard_symbols.xml

@ -0,0 +1,59 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<Keyboard android:keyWidth="10.000002%p" android:keyHeight="6.9002%p"
3
	android:horizontalGap="0.0px" android:verticalGap="0.0px"
4
	xmlns:android="http://schemas.android.com/apk/res/android">
5
	<Row>
6
		<Key android:codes="33" android:keyEdgeFlags="left"
7
			android:keyLabel="!" />
8
		<Key android:codes="64" android:keyLabel="\@" />
9
		<Key android:codes="35" android:keyLabel="#" />
10
		<Key android:codes="36" android:keyLabel="$" />
11
		<Key android:codes="37" android:keyLabel="%" />
12
		<Key android:codes="94" android:keyLabel="^" />
13
		<Key android:codes="38" android:keyLabel="&amp;" />
14
		<Key android:codes="42" android:keyLabel="*" />
15
		<Key android:codes="40" android:keyLabel="(" />
16
		<Key android:codes="41" android:keyEdgeFlags="right"
17
			android:keyLabel=")" />
18
	</Row>
19
	<Row>
20
		<Key android:codes="126" android:keyEdgeFlags="left"
21
			android:keyLabel="~" />
22
		<Key android:codes="95" android:keyLabel="_" />
23
		<Key android:codes="43" android:keyLabel="+" />
24
		<Key android:codes="123" android:keyLabel="{" />
25
		<Key android:codes="125" android:keyLabel="}" />
26
		<Key android:codes="58" android:keyLabel=":" />
27
		<Key android:codes="34" android:keyLabel="&quot;"/>
28
		<Key android:codes="60" android:keyLabel='&lt;' />
29
		<Key android:codes="63" android:keyLabel="\?" />
30
		<Key android:codes="124" android:keyEdgeFlags="right"
31
			android:keyLabel="|" />
32
	</Row>
33
	<Row>
34
		<Key android:codes="96" android:keyEdgeFlags="left"
35
			android:keyLabel="`" />
36
		<Key android:codes="45" android:keyLabel="-" />
37
		<Key android:codes="61" android:keyLabel="=" />
38
		<Key android:codes="91" android:keyLabel="[" />
39
		<Key android:codes="93" android:keyLabel="]" />
40
		<Key android:codes="59" android:keyLabel=";" />
41
		<Key android:codes="39" android:keyLabel="&apos;" />
42
		<Key android:codes="62" android:keyLabel="&gt;" />
43
		<Key android:codes="47" android:keyLabel="/" />
44
		<Key android:codes="92" android:keyEdgeFlags="right"
45
			android:keyLabel="\\" />
46
	</Row>
47
	<Row android:rowEdgeFlags="bottom">
48
		<Key android:keyWidth="20.000004%p" android:codes="-2"
49
			android:keyLabel="Abc" />
50
		<Key android:keyWidth="14.999998%p" android:codes="44"
51
			android:keyLabel="," />
52
		<Key android:keyWidth="14.999998%p" android:codes="46"
53
			android:keyLabel="." />
54
		<Key android:keyWidth="29.999996%p" android:codes="-5"
55
			android:keyIcon="@drawable/keyboard_sym_delete" />
56
		<Key android:keyWidth="20.000004%p" android:codes="-3"
57
			android:keyEdgeFlags="right" android:keyLabel="完成" />
58
	</Row>
59
</Keyboard>

BIN
ipu-mobile-common/res/drawable/nfc_bg.png


BIN
ipu-mobile-common/res/drawable/record_mic_normal.png


BIN
ipu-mobile-common/res/drawable/record_mic_press.png


BIN
ipu-mobile-common/res/drawable/screenlock_arrow.png


BIN
ipu-mobile-common/res/drawable/screenlock_line.png


BIN
ipu-mobile-common/res/drawable/screenlock_line_error.png


BIN
ipu-mobile-common/res/drawable/screenlock_line_semicircle.png


BIN
ipu-mobile-common/res/drawable/screenlock_line_semicircle_error.png


BIN
ipu-mobile-common/res/drawable/screenlock_round_click.png


BIN
ipu-mobile-common/res/drawable/screenlock_round_click_error.png


BIN
ipu-mobile-common/res/drawable/screenlock_round_original.png


BIN
ipu-mobile-common/res/drawable/screenlock_welcome_bg.9.png


+ 17 - 0
ipu-mobile-common/res/drawable/share_apk_activity_dialog.xml

@ -0,0 +1,17 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:Android="http://schemas.android.com/apk/res/android" >
3

4
    <padding
5
        Android:bottom="5dp"
6
        Android:left="5dp"
7
        Android:right="5dp"
8
        Android:top="5dp" />
9
	<!-- 外边线 -->
10
    <stroke
11
        Android:width="2dip"
12
        Android:color="#544649" />
13
	
14
    <corners Android:radius="5dp" />
15
	<!-- 内线 -->
16
    <solid Android:color="#8A7479" />
17
</shape>

+ 21 - 0
ipu-mobile-common/res/layout/audio_recorder.xml

@ -0,0 +1,21 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:orientation="vertical" >
6

7
    <TextView
8
        android:layout_width="wrap_content"
9
        android:layout_height="wrap_content"
10
        android:text="@string/pressTip"
11
        android:textSize="20dp"
12
        android:id="@+id/recordLabel"
13
         />
14

15
    <ImageButton
16
        android:layout_width="wrap_content"
17
        android:layout_height="wrap_content"
18
        android:src="@drawable/record_mic_normal" 
19
        android:id="@+id/micButton"/>
20

21
</LinearLayout>

+ 77 - 0
ipu-mobile-common/res/layout/browser.xml

@ -0,0 +1,77 @@
1
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
    xmlns:tools="http://schemas.android.com/tools"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:background="#ffffff"
6
    android:orientation="vertical" >
7

8
    <LinearLayout
9
        android:layout_width="fill_parent"
10
        android:layout_height="wrap_content"
11
        android:orientation="vertical" >
12

13
        <LinearLayout
14
            android:id="@+id/layout"
15
            android:layout_width="fill_parent"
16
            android:layout_height="wrap_content"
17
            android:orientation="horizontal"
18
            android:visibility="gone" >
19

20
            <EditText
21
                android:id="@+id/et_url"
22
                android:layout_width="0dp"
23
                android:layout_height="wrap_content"
24
                android:layout_weight="1"
25
                android:inputType="textUri"
26
                android:singleLine="true" />
27

28
            <Button
29
                android:id="@+id/btn_visit"
30
                android:layout_width="wrap_content"
31
                android:layout_height="wrap_content"
32
                android:text="@string/visit" />
33
        </LinearLayout>
34

35
        <LinearLayout
36
            android:id="@+id/ll_btn"
37
            android:layout_width="fill_parent"
38
            android:layout_height="wrap_content"
39
            android:gravity="center_horizontal"
40
            android:orientation="horizontal" >
41

42
            <Button
43
                android:id="@+id/btn_home"
44
                android:layout_width="wrap_content"
45
                android:layout_height="wrap_content"
46
                android:layout_weight="1"
47
                android:text="@string/home" />
48

49
            <Button
50
                android:id="@+id/btn_left"
51
                android:layout_width="wrap_content"
52
                android:layout_height="wrap_content"
53
                android:layout_weight="1"
54
                android:text="@string/left" />
55

56
            <Button
57
                android:id="@+id/btn_right"
58
                android:layout_width="wrap_content"
59
                android:layout_height="wrap_content"
60
                android:layout_weight="1"
61
                android:text="@string/right" />
62

63
            <Button
64
                android:id="@+id/btn_exit"
65
                android:layout_width="wrap_content"
66
                android:layout_height="wrap_content"
67
                android:layout_weight="1"
68
                android:text="@string/exit" />
69
        </LinearLayout>
70

71
        <WebView
72
            android:id="@+id/web"
73
            android:layout_width="fill_parent"
74
            android:layout_height="fill_parent" />
75
    </LinearLayout>
76

77
</LinearLayout>

+ 23 - 0
ipu-mobile-common/res/layout/keyboard.xml

@ -0,0 +1,23 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
    <RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"
3
        android:layout_width="fill_parent"
4
    	android:layout_height="match_parent"
5
    	android:orientation="vertical" 
6
        android:layout_gravity="bottom">
7
             
8
        <android.inputmethodservice.KeyboardView
9
            android:id="@+id/keyboard_view"
10
            android:layout_width="fill_parent"
11
            android:layout_height="wrap_content"
12
            android:focusable="true"
13
            android:focusableInTouchMode="true"
14
            android:background="#ff202020"
15
            android:keyBackground="@drawable/keyboard_key" 
16
            android:layout_alignParentBottom="true"
17
            android:keyTextColor="#ffffffff"
18
            android:visibility="visible" />
19
            <requestFocus />
20

21
          
22
           
23
    </RelativeLayout>

+ 23 - 0
ipu-mobile-common/res/layout/nfcard.xml

@ -0,0 +1,23 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:background="#FFBABABA" >
6
7
    <ImageView
8
        android:contentDescription="@string/imgContentDesc"
9
        android:layout_width="fill_parent"
10
        android:layout_height="fill_parent"
11
        android:background="@android:color/white"
12
        android:src="@drawable/nfc_bg" >
13
    </ImageView>
14
15
    <TextView
16
        android:layout_width="fill_parent"
17
        android:layout_height="wrap_content"
18
        android:gravity="center"
19
        android:text="@string/tips"
20
        android:textColor="#5499d2"
21
        android:textSize="20sp" />
22
23
</RelativeLayout>

+ 36 - 0
ipu-mobile-common/res/layout/screenlock_login_layout2.xml

@ -0,0 +1,36 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent" >
5
    
6
    <RelativeLayout
7
        android:layout_width="fill_parent"
8
        android:layout_height="fill_parent"
9
        android:background="@drawable/screenlock_welcome_bg"
10
        android:padding="10dp" >
11

12
        <com.ai.ipu.mobile.common.screenlock.view.LocusPassWordView
13
            android:id="@+id/lock_view"
14
            android:layout_width="fill_parent"
15
            android:layout_height="fill_parent" />
16

17
        <TextView
18
            android:id="@+id/notify"
19
            android:layout_width="fill_parent"
20
            android:layout_height="wrap_content"
21
            android:layout_marginTop="10dp"
22
            android:gravity="center"
23
            android:text="请输入您设置的手势密码"
24
            android:textColor="@android:color/white"
25
            android:textSize="16sp" />
26

27
        <Button
28
            android:id="@+id/forget_btn"
29
            android:layout_width="fill_parent"
30
            android:layout_height="wrap_content"
31
            android:layout_alignParentBottom="true"
32
            android:padding="10dp"
33
            android:text="忘记密码或者用其他方式登录" />
34
    </RelativeLayout>
35

36
</RelativeLayout>

+ 28 - 0
ipu-mobile-common/res/layout/screenlock_reset_lock_layout.xml

@ -0,0 +1,28 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:background="@drawable/screenlock_welcome_bg"
6
    android:padding="10dp" >
7

8
    <com.ai.ipu.mobile.common.screenlock.view.LocusPassWordView
9
        android:id="@+id/lock_view"
10
        android:layout_width="fill_parent"
11
        android:layout_height="fill_parent" />
12
    <TextView
13
        android:id="@+id/notify"
14
        android:layout_width="fill_parent"
15
        android:layout_height="wrap_content"
16
        android:gravity="center"
17
        android:text="123"
18
        android:textColor="@android:color/white"
19
        android:textSize="16sp" />
20
	<Button
21
        android:id="@+id/reset_btn"
22
        android:layout_width="fill_parent"
23
        android:layout_height="wrap_content"
24
        android:layout_alignParentBottom="true"
25
        android:padding="10dp"
26
        android:text="重新设置" 
27
        android:visibility="invisible"/>
28
</RelativeLayout>

+ 77 - 0
ipu-mobile-common/res/layout/share_apk_activity.xml

@ -0,0 +1,77 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="300dp"
4
    android:layout_height="400dp"
5
    android:background="#060514"
6
    android:orientation="vertical" >
7
    
8
    <TextView
9
        android:id="@+id/share"
10
        android:layout_width="match_parent"
11
        android:layout_height="wrap_content"
12
        android:gravity="center"
13
        android:text="@string/sa_share"
14
        android:textColor="#FFFFFF"
15
        android:textSize="20sp" />
16

17
    <View
18
        android:layout_width="match_parent"
19
        android:layout_height="1dp"
20
        android:layout_marginBottom="2dp"
21
        android:layout_marginTop="2dp"
22
        android:background="#696969" />
23

24
    <ListView
25
        android:id="@+id/deviceListView"
26
        android:layout_width="match_parent"
27
        android:layout_height="0dp"
28
        android:layout_weight="1"
29
        android:isScrollContainer="true"
30
        android:paddingTop="5dp" >
31
    </ListView>
32

33
    <View
34
        android:layout_width="match_parent"
35
        android:layout_height="1dp"
36
        android:layout_marginBottom="2dp"
37
        android:layout_marginTop="2dp"
38
        android:background="#696969" />
39

40
    <RelativeLayout
41
        android:layout_width="wrap_content"
42
        android:layout_height="50dp" >
43

44
        <Button
45
            android:id="@+id/exit"
46
            android:layout_width="140dp"
47
            android:layout_height="wrap_content"
48
            android:layout_marginRight="5dp"
49
            android:paddingLeft="20dp"
50
            android:text="@string/sa_exit"
51
            android:textColor="#FFFFFF"
52
            android:textSize="20sp" />
53

54
        <View
55
            android:layout_width="1dip"
56
            android:layout_height="50dp"
57
            android:layout_gravity="center_horizontal"
58
            android:layout_centerInParent="true"
59
            android:background="#696969"
60
            android:layout_marginLeft="3dp"
61
            android:layout_marginRight="3dp"
62
             />
63

64
        <Button
65
            android:id="@+id/search"
66
            android:layout_width="140dp"
67
            android:layout_height="wrap_content"
68
            android:layout_alignParentRight="true"
69
            android:layout_alignTop="@id/exit"
70
            android:layout_marginRight="5dp"
71
            android:paddingRight="20dp"
72
            android:text="@string/sa_search"
73
            android:textColor="#FFFFFF"
74
            android:textSize="20sp" />
75
    </RelativeLayout>
76

77
</LinearLayout>

+ 39 - 0
ipu-mobile-common/res/layout/share_apk_device_list_item.xml

@ -0,0 +1,39 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="horizontal" >
6

7
    <LinearLayout
8
        android:layout_width="0dp"
9
        android:layout_height="wrap_content"
10
        android:orientation="vertical"
11
        android:layout_weight="1"
12
        android:paddingBottom="5dp"
13
         >
14
        <!-- 设备名 -->
15
        <TextView
16
            android:id="@+id/deviceNameTV"
17
            android:layout_width="wrap_content"
18
            android:layout_height="wrap_content"
19
            android:paddingLeft="5dp"
20
            android:textColor="#fff"
21
            android:textSize="20sp" />
22
        <LinearLayout
23
            android:layout_width="fill_parent"
24
            android:layout_height="wrap_content"
25
            android:orientation="horizontal" >
26
            <!-- MAC地址 -->
27
            <TextView
28
                android:layout_width="wrap_content"
29
                android:layout_height="wrap_content"
30
                android:layout_marginLeft="15dp"
31
                android:text="@string/sa_mac_address" />
32
            <!-- MAC地址字符串 -->
33
            <TextView
34
                android:id="@+id/macAddressTV"
35
                android:layout_width="wrap_content"
36
                android:layout_height="wrap_content" />
37
        </LinearLayout>
38
    </LinearLayout>
39
</LinearLayout>

BIN
ipu-mobile-common/res/raw/beep.ogg


+ 11 - 0
ipu-mobile-common/res/values-v11/styles.xml

@ -0,0 +1,11 @@
1
<resources>
2

3
    <!--
4
        Base application theme for API 11+. This theme completely replaces
5
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8
        <!-- API 11 theme customizations can go here. -->
9
    </style>
10

11
</resources>

+ 12 - 0
ipu-mobile-common/res/values-v14/styles.xml

@ -0,0 +1,12 @@
1
<resources>
2

3
    <!--
4
        Base application theme for API 14+. This theme completely replaces
5
        AppBaseTheme from BOTH res/values/styles.xml and
6
        res/values-v11/styles.xml on API 14+ devices.
7
    -->
8
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9
        <!-- API 14 theme customizations can go here. -->
10
    </style>
11

12
</resources>

+ 3 - 0
ipu-mobile-common/res/values/strings.xml

@ -0,0 +1,3 @@
1
<resources>
2
    <string name="app_name">ipu-plugin-extend</string>
3
</resources>

+ 5 - 0
ipu-mobile-common/res/values/strings_audio.xml

@ -0,0 +1,5 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="recording">正在录音……</string>
4
    <string name="pressTip">按下说话</string>
5
</resources>

+ 8 - 0
ipu-mobile-common/res/values/strings_browser.xml

@ -0,0 +1,8 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="home">主页</string>
4
    <string name="left">后退</string>
5
    <string name="right">前进</string>
6
    <string name="exit">退出</string>
7
    <string name="visit">访问</string>
8
</resources>

+ 5 - 0
ipu-mobile-common/res/values/strings_nfc.xml

@ -0,0 +1,5 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="imgContentDesc">NFC 背景图片</string>
4
    <string name="tips">还在等什么,碰一碰~</string>
5
</resources>

+ 10 - 0
ipu-mobile-common/res/values/strings_share_apk.xml

@ -0,0 +1,10 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <string name="sa_share">应用分享</string>
4
	<string name="sa_mac_address">MAC地址:</string>
5
	<string name="sa_search">刷新</string>
6
	<string name="sa_searching">搜索设备中……</string>
7
	<string name="sa_exit">退出</string>
8
	<string name="sa_confirm_share">确认要分享吗?</string>
9
	<string name="sa_tip">请将远程蓝牙设备打开,并且保持可见……</string>
10
</resources>

+ 9 - 0
ipu-mobile-common/res/values/style_audio.xml

@ -0,0 +1,9 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
	<style name="AudioDialogTheme" parent="@android:style/Theme.Dialog">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
        <!-- 设置背景色 -->
7
        <item name="android:windowBackground">@drawable/audio_activity_dialog</item>
8
    </style>
9
</resources>

+ 7 - 0
ipu-mobile-common/res/values/style_custom_dialog.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
    </style>
7
</resources>

+ 7 - 0
ipu-mobile-common/res/values/style_share_apk.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <style name="ShareApkDialogTheme" parent="@android:style/Theme.Dialog">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
    </style>
7
</resources>

+ 7 - 0
ipu-mobile-common/res/values/style_sliding_menu.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <style name="SlidingMenuTheme" parent="@android:style/Theme.Translucent">
4
        <!-- 无标题 -->
5
        <item name="android:windowNoTitle">true</item>
6
    </style>
7
</resources>

+ 20 - 0
ipu-mobile-common/res/values/styles.xml

@ -0,0 +1,20 @@
1
<resources>
2

3
    <!--
4
        Base application theme, dependent on API level. This theme is replaced
5
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Light">
8
        <!--
9
            Theme customizations available in newer API levels can go in
10
            res/values-vXX/styles.xml, while customizations related to
11
            backward-compatibility can go here.
12
        -->
13
    </style>
14

15
    <!-- Application theme. -->
16
    <style name="AppTheme" parent="AppBaseTheme">
17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18
    </style>
19

20
</resources>

BIN
ipu-mobile-libs/bin/ipu-mobile-libs.jar


+ 0 - 3
ipu-mobile-libs/bin/jarlist.cache

@ -1,3 +0,0 @@
1
# cache for current jar dependency. DO NOT EDIT.
2
# format is <lastModified> <length> <SHA-1> <path>
3
# Encoding is UTF-8