ActionBarSherlock 4.0.2
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 467 B |
|
After Width: | Height: | Size: 505 B |
|
After Width: | Height: | Size: 154 B |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 122 B |
|
After Width: | Height: | Size: 882 B |
|
After Width: | Height: | Size: 1003 B |
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 355 B |
|
After Width: | Height: | Size: 151 B |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 699 B |
|
After Width: | Height: | Size: 935 B |
|
After Width: | Height: | Size: 158 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_activated="true" android:drawable="@drawable/abs__list_activated_holo" />
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_activated="true" android:drawable="@drawable/abs__list_activated_holo" />
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
||||
@@ -14,8 +14,7 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/abs__btn_cab_done_pressed_holo_dark" />
|
||||
<item android:state_focused="true" android:state_enabled="true"
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/abs__btn_cab_done_pressed_holo_light" />
|
||||
<item android:state_focused="true" android:state_enabled="true"
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
|
||||
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/abs__list_selector_disabled_holo_dark" />
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
|
||||
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/abs__list_selector_disabled_holo_light" />
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -18,6 +18,6 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="?attr/dividerVertical"
|
||||
android:divider="?attr/actionBarDivider"
|
||||
android:dividerPadding="12dip"
|
||||
android:gravity="center_vertical" />
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2011, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<com.actionbarsherlock.internal.widget.IcsLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/abs__activity_chooser_view_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center"
|
||||
style="?attr/activityChooserViewStyle">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/abs__expand_activities_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center"
|
||||
android:focusable="true"
|
||||
android:addStatesFromChildren="true"
|
||||
android:background="?attr/actionBarItemBackground">
|
||||
|
||||
<ImageView android:id="@+id/abs__image"
|
||||
android:layout_width="56dip"
|
||||
android:layout_height="36dip"
|
||||
android:layout_gravity="center"
|
||||
android:paddingTop="2dip"
|
||||
android:paddingBottom="2dip"
|
||||
android:paddingLeft="12dip"
|
||||
android:paddingRight="12dip"
|
||||
android:scaleType="fitCenter"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/abs__default_activity_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center"
|
||||
android:focusable="true"
|
||||
android:addStatesFromChildren="true"
|
||||
android:background="?attr/actionBarItemBackground">
|
||||
|
||||
<ImageView android:id="@+id/abs__image"
|
||||
android:layout_width="56dip"
|
||||
android:layout_height="36dip"
|
||||
android:layout_gravity="center"
|
||||
android:paddingTop="2dip"
|
||||
android:paddingBottom="2dip"
|
||||
android:paddingLeft="12dip"
|
||||
android:paddingRight="12dip"
|
||||
android:scaleType="fitCenter"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</com.actionbarsherlock.internal.widget.IcsLinearLayout>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/abs__list_item"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/dropdownListPreferredItemHeight"
|
||||
android:paddingLeft="16dip"
|
||||
android:paddingRight="16dip"
|
||||
android:minWidth="196dip"
|
||||
android:background="?attr/activatedBackgroundIndicator"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:duplicateParentState="true" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/abs__icon"
|
||||
android:layout_width="32dip"
|
||||
android:layout_height="32dip"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="8dip"
|
||||
android:duplicateParentState="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/abs__title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textAppearance="?attr/textAppearanceLargePopupMenu"
|
||||
android:duplicateParentState="true"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -4,9 +4,9 @@
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -19,10 +19,10 @@ This is an optimized layout for a screen with the Action Bar enabled.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
android:fitsSystemWindows="true">
|
||||
<com.actionbarsherlock.internal.widget.ActionBarContainer
|
||||
android:id="@+id/abs__action_bar_container"
|
||||
android:layout_width="fill_parent"
|
||||
@@ -42,7 +42,7 @@ This is an optimized layout for a screen with the Action Bar enabled.
|
||||
</com.actionbarsherlock.internal.widget.ActionBarContainer>
|
||||
<com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout
|
||||
android:id="@+id/abs__content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:foregroundGravity="fill_horizontal|top"
|
||||
|
||||
@@ -19,38 +19,41 @@ This is an optimized layout for a screen with
|
||||
the Action Bar enabled overlaying application content.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
<com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout android:id="@+id/abs__content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" />
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<com.actionbarsherlock.internal.widget.ActionBarContainer android:id="@+id/abs__action_bar_container"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
style="?attr/actionBarStyle"
|
||||
android:gravity="top">
|
||||
<com.actionbarsherlock.internal.widget.ActionBarView
|
||||
android:id="@+id/abs__action_bar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/actionBarStyle" />
|
||||
<com.actionbarsherlock.internal.widget.ActionBarContextView
|
||||
android:id="@+id/abs__action_context_bar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
style="?attr/actionModeStyle" />
|
||||
</com.actionbarsherlock.internal.widget.ActionBarContainer>
|
||||
<ImageView android:src="?attr/windowContentOverlay"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/abs__action_bar_container" />
|
||||
<com.actionbarsherlock.internal.widget.ActionBarContainer android:id="@+id/abs__split_action_bar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="bottom"
|
||||
style="?attr/actionBarSplitStyle"
|
||||
android:visibility="gone"
|
||||
android:gravity="center"/>
|
||||
</RelativeLayout>
|
||||
</FrameLayout>
|
||||
|
||||
@@ -21,6 +21,8 @@ enabled.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
<com.actionbarsherlock.internal.nineoldandroids.widget.NineFrameLayout
|
||||
android:id="@+id/abs__content"
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
<item name="actionBarSize">?android:attr/actionBarSize</item>
|
||||
<!-- Needed for our bug-fix dropdown list navigation layout. :( -->
|
||||
<item name="dropdownListPreferredItemHeight">48dp</item>
|
||||
<!-- Needed for our ShareActionProvider implementation. -->
|
||||
<item name="android:actionBarWidgetTheme">@style/Theme.Sherlock</item>
|
||||
<!-- For crazy people who use IcsSpinner. -->
|
||||
<item name="dropDownListViewStyle">?android:attr/dropDownListViewStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Sherlock.NoActionBar">
|
||||
@@ -20,7 +24,7 @@
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Theme.Sherlock.Dialog" parent="android:Theme.Holo.Dialog">
|
||||
</style>
|
||||
<style name="Theme.Sherlock.Light.Dialog" parent="android:Theme.Holo.Light.Dialog">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<attr name="backgroundSplit" format="reference|color" />
|
||||
<attr name="height" format="dimension" />
|
||||
<attr name="divider" format="reference" />
|
||||
|
||||
|
||||
<declare-styleable name="SherlockTheme">
|
||||
<!-- =================== -->
|
||||
<!-- Action bar styles -->
|
||||
@@ -60,6 +60,8 @@
|
||||
<attr name="actionModeSplitBackground" format="reference" />
|
||||
<!-- Drawable to use for the close action mode button -->
|
||||
<attr name="actionModeCloseDrawable" format="reference" />
|
||||
<!-- Drawable to use for the Share action button in WebView selection action modes -->
|
||||
<attr name="actionModeShareDrawable" format="reference" />
|
||||
|
||||
<!-- PopupWindow style to use for action modes when showing as a window overlay. -->
|
||||
<attr name="actionModePopupWindowStyle" format="reference" />
|
||||
@@ -71,9 +73,9 @@
|
||||
|
||||
<!-- Small Button style. -->
|
||||
<attr name="buttonStyleSmall" format="reference" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- This Drawable is overlaid over the foreground of the Window's content area, usually
|
||||
to place a shadow below the title. -->
|
||||
<attr name="windowContentOverlay" format="reference" />
|
||||
@@ -83,15 +85,15 @@
|
||||
|
||||
<!-- Text color, typeface, size, and style for small text inside of a popup menu. -->
|
||||
<attr name="textAppearanceSmallPopupMenu" format="reference" />
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Text color, typeface, size, and style for "small" text. Defaults to secondary text color. -->
|
||||
<attr name="textAppearanceSmall" format="reference" />
|
||||
|
||||
|
||||
<attr name="textColorPrimary" format="color" />
|
||||
<attr name="textColorPrimaryDisableOnly" format="color" />
|
||||
<attr name="textColorPrimaryInverse" format="color" />
|
||||
|
||||
|
||||
<attr name="spinnerItemStyle" format="reference" />
|
||||
<attr name="spinnerDropDownItemStyle" format="reference" />
|
||||
|
||||
@@ -99,7 +101,7 @@
|
||||
<!-- List styles -->
|
||||
<!-- =========== -->
|
||||
<eat-comment />
|
||||
|
||||
|
||||
<!-- A smaller, sleeker list item height. -->
|
||||
<attr name="listPreferredItemHeightSmall" format="dimension" />
|
||||
|
||||
@@ -107,19 +109,19 @@
|
||||
<attr name="listPreferredItemPaddingLeft" format="dimension" />
|
||||
<!-- The preferred padding along the right edge of list items. -->
|
||||
<attr name="listPreferredItemPaddingRight" format="dimension" />
|
||||
|
||||
|
||||
<!-- The preferred TextAppearance for the primary text of small list items. -->
|
||||
<attr name="textAppearanceListItemSmall" format="reference" />
|
||||
|
||||
|
||||
|
||||
|
||||
<attr name="windowMinWidthMajor" format="dimension" />
|
||||
<attr name="windowMinWidthMinor" format="dimension" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Drawable to use for generic vertical dividers. -->
|
||||
<attr name="dividerVertical" format="reference" />
|
||||
|
||||
|
||||
<attr name="actionDropDownStyle" format="reference" />
|
||||
<attr name="actionButtonStyle" format="reference" />
|
||||
<attr name="homeAsUpIndicator" format="reference" />
|
||||
@@ -132,13 +134,22 @@
|
||||
<attr name="windowActionBarOverlay" format="boolean"/>
|
||||
<attr name="windowActionModeOverlay" format="boolean"/>
|
||||
<attr name="windowSplitActionBar" format="boolean" />
|
||||
|
||||
|
||||
|
||||
<attr name="listPopupWindowStyle" format="reference" />
|
||||
|
||||
|
||||
<!-- Default ActivityChooserView style. -->
|
||||
<attr name="activityChooserViewStyle" format="reference" />
|
||||
<!-- Drawable used as a background for activated items. -->
|
||||
<attr name="activatedBackgroundIndicator" format="reference" />
|
||||
|
||||
<!-- Specified if we are forcing an action item overflow menu. -->
|
||||
<attr name="absForceOverflow" format="boolean" />
|
||||
|
||||
|
||||
<attr name="android:windowIsFloating" />
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
|
||||
<!-- Attributes used to style the Action Bar. -->
|
||||
<declare-styleable name="SherlockActionBar">
|
||||
@@ -196,7 +207,7 @@
|
||||
system-provided items in the bar. -->
|
||||
<attr name="itemPadding" format="dimension" />
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
|
||||
<declare-styleable name="SherlockActionMode">
|
||||
<!-- Specifies a style to use for title text. -->
|
||||
@@ -210,7 +221,7 @@
|
||||
<!-- Specifies a fixed height for the action mode bar. -->
|
||||
<attr name="height" />
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
<declare-styleable name="SherlockMenuView">
|
||||
<!-- Default appearance of menu item text. -->
|
||||
<attr name="itemTextAppearance" format="reference" />
|
||||
@@ -229,11 +240,25 @@
|
||||
<!-- Whether space should be reserved in layout when an icon is missing. -->
|
||||
<attr name="preserveIconSpacing" format="boolean" />
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
<declare-styleable name="SherlockActionMenuItemView">
|
||||
<attr name="android:minWidth" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="SherlockActivityChooserView">
|
||||
<!-- The maximal number of items initially shown in the activity list. -->
|
||||
<attr name="initialActivityCount" format="string" />
|
||||
<!-- The drawable to show in the button for expanding the activities overflow popup.
|
||||
<strong>Note:</strong> Clients would like to set this drawable
|
||||
as a clue about the action the chosen activity will perform. For
|
||||
example, if share activity is to be chosen the drawable should
|
||||
give a clue that sharing is to be performed.
|
||||
-->
|
||||
<attr name="expandActivityOverflowButtonDrawable" format="reference" />
|
||||
|
||||
<attr name="android:background" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- Base attributes that are available to all groups. -->
|
||||
<declare-styleable name="SherlockMenuGroup">
|
||||
|
||||
@@ -329,7 +354,7 @@
|
||||
<attr name="android:actionProviderClass" />
|
||||
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
<declare-styleable name="SherlockSpinner">
|
||||
<!-- The prompt to display when the spinner's dialog is shown. -->
|
||||
<attr name="android:prompt" />
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Content description for the action bar "home" affordance. [CHAR LIMIT=NONE] -->
|
||||
<string name="abs__action_bar_home_description">Navigate home</string>
|
||||
<!-- Content description for the action bar "up" affordance. [CHAR LIMIT=NONE] -->
|
||||
@@ -26,4 +26,17 @@
|
||||
|
||||
<!-- Label for the "Done" button on the far left of action mode toolbars. -->
|
||||
<string name="abs__action_mode_done">Done</string>
|
||||
|
||||
<!-- Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25] -->
|
||||
<string name="abs__activity_chooser_view_see_all">See all...</string>
|
||||
<!-- Title default for a dialog showing possible activities in ActivityChooserView [CHAR LIMIT=25] -->
|
||||
<string name="abs__activity_chooser_view_dialog_title_default">Select activity</string>
|
||||
<!-- Title for a dialog showing possible activities for sharing in ShareActionProvider [CHAR LIMIT=25] -->
|
||||
<string name="abs__share_action_provider_share_with">Share with...</string>
|
||||
<!-- Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE] -->
|
||||
<string name="abs__activitychooserview_choose_application">Choose an application</string>
|
||||
<!-- Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] -->
|
||||
<string name="abs__shareactionprovider_share_with">Share with</string>
|
||||
<!-- Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] -->
|
||||
<string name="abs__shareactionprovider_share_with_application">Share with <xliff:g id="application_name" example="Bluetooth">%s</xliff:g></string>
|
||||
</resources>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<resources>
|
||||
<style name="Widget">
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Sherlock.__Widget.ActionBar" parent="Widget">
|
||||
<item name="displayOptions">useLogo|showHome|showTitle</item>
|
||||
<item name="height">?attr/actionBarSize</item>
|
||||
@@ -71,10 +71,10 @@
|
||||
<item name="progressBarPadding">32dip</item>
|
||||
<item name="itemPadding">8dip</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.ActionBar.TabView" parent="Widget">
|
||||
<item name="android:gravity">center_horizontal</item>
|
||||
<item name="android:background">@drawable/abs__tab_indicator_holo</item>
|
||||
<item name="android:background">@drawable/abs__tab_indicator_ab_holo</item>
|
||||
<item name="android:paddingLeft">16dip</item>
|
||||
<item name="android:paddingRight">16dip</item>
|
||||
</style>
|
||||
@@ -82,7 +82,7 @@
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.ActionBar.TabView.Inverse">
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.ActionBar.TabBar" parent="Widget">
|
||||
<item name="android:divider">?attr/actionBarDivider</item>
|
||||
<item name="android:showDividers">middle</item>
|
||||
@@ -92,7 +92,7 @@
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.ActionBar.TabBar.Inverse">
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.ActionBar.TabText" parent="Widget">
|
||||
<item name="android:textAppearance">@null</item>
|
||||
<item name="android:textColor">?attr/textColorPrimary</item>
|
||||
@@ -111,8 +111,8 @@
|
||||
<style name="Widget.Sherlock.ActionButton" parent="Widget">
|
||||
<item name="android:background">?attr/actionBarItemBackground</item>
|
||||
<item name="android:minHeight">?attr/actionBarSize</item>
|
||||
|
||||
<item name="android:minWidth">56dip</item>
|
||||
|
||||
<item name="android:minWidth">@dimen/abs__action_button_min_width</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:paddingLeft">12dip</item>
|
||||
<item name="android:paddingRight">12dip</item>
|
||||
@@ -120,14 +120,14 @@
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.ActionButton" parent="Widget.Sherlock.ActionButton">
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.ActionButton.CloseMode">
|
||||
<item name="android:background">@drawable/abs__btn_cab_done_holo_dark</item>
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.ActionButton.CloseMode">
|
||||
<item name="android:background">@drawable/abs__btn_cab_done_holo_light</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.ActionButton.Overflow">
|
||||
<item name="android:src">@drawable/abs__ic_menu_moreoverflow_holo_dark</item>
|
||||
<item name="android:background">?attr/actionBarItemBackground</item>
|
||||
@@ -136,7 +136,7 @@
|
||||
<style name="Widget.Sherlock.Light.ActionButton.Overflow">
|
||||
<item name="android:src">@drawable/abs__ic_menu_moreoverflow_holo_light</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Sherlock.__Widget.ActionMode" parent="Widget">
|
||||
<item name="background">?attr/actionModeBackground</item>
|
||||
<item name="backgroundSplit">?attr/actionModeSplitBackground</item>
|
||||
@@ -154,22 +154,53 @@
|
||||
<item name="titleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Title.Inverse</item>
|
||||
<item name="subtitleTextStyle">@style/TextAppearance.Sherlock.Widget.ActionMode.Subtitle.Inverse</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.PopupMenu" parent="Widget">
|
||||
|
||||
|
||||
<style name="Widget.Sherlock.ListPopupWindow" parent="Widget">
|
||||
<item name="android:dropDownSelector">@drawable/abs__list_selector_holo_dark</item>
|
||||
<item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_dark</item>
|
||||
<item name="android:dropDownVerticalOffset">0dip</item>
|
||||
<item name="android:dropDownHorizontalOffset">0dip</item>
|
||||
<item name="android:dropDownWidth">wrap_content</item>
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.PopupMenu" parent="Widget">
|
||||
<style name="Widget.Sherlock.Light.ListPopupWindow" parent="Widget">
|
||||
<item name="android:dropDownSelector">@drawable/abs__list_selector_holo_light</item>
|
||||
<item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_light</item>
|
||||
<item name="android:dropDownVerticalOffset">0dip</item>
|
||||
<item name="android:dropDownHorizontalOffset">0dip</item>
|
||||
<item name="android:dropDownWidth">wrap_content</item>
|
||||
</style>
|
||||
<style name="Widget.Sherlock.PopupMenu" parent="Widget.Sherlock.ListPopupWindow">
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.PopupMenu" parent="Widget.Sherlock.Light.ListPopupWindow">
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Sherlock.__Widget.ActivityChooserView" parent="Widget">
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:background">@drawable/abs__ab_share_pack_holo_dark</item>
|
||||
<item name="android:divider">?attr/dividerVertical</item>
|
||||
<item name="android:showDividers">middle</item>
|
||||
<item name="android:dividerPadding">6dip</item>
|
||||
</style>
|
||||
<style name="Widget.Sherlock.ActivityChooserView" parent="Sherlock.__Widget.ActivityChooserView">
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.ActivityChooserView" parent="Widget.Sherlock.ActivityChooserView">
|
||||
<item name="android:background">@drawable/abs__ab_share_pack_holo_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Sherlock.Button.Small" parent="Widget">
|
||||
<item name="android:textAppearance">?attr/textAppearanceSmall</item>
|
||||
<item name="android:textColor">@color/abs__primary_text_holo_dark</item>
|
||||
<item name="android:minHeight">48dip</item>
|
||||
<item name="android:minWidth">48dip</item>
|
||||
</style>
|
||||
<style name="Widget.Sherlock.Light.Button.Small" parent="Widget">
|
||||
<item name="android:textAppearance">?attr/textAppearanceSmall</item>
|
||||
<item name="android:textColor">@color/abs__primary_text_holo_light</item>
|
||||
<item name="android:minHeight">48dip</item>
|
||||
<item name="android:minWidth">48dip</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Sherlock.__Widget.Holo.Spinner" parent="Widget">
|
||||
@@ -190,7 +221,7 @@
|
||||
<item name="android:dropDownSelector">@drawable/abs__list_selector_holo_light</item>
|
||||
<item name="android:popupBackground">@drawable/abs__menu_dropdown_panel_holo_light</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Sherlock.__Widget.Holo.ListView" parent="android:Widget.ListView">
|
||||
<item name="android:divider">@drawable/abs__list_divider_holo_dark</item>
|
||||
<item name="android:listSelector">@drawable/abs__list_selector_holo_dark</item>
|
||||
@@ -306,7 +337,7 @@
|
||||
<item name="android:textSize">@dimen/abs__action_bar_subtitle_text_size</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="TextAppearance.Sherlock.Widget.PopupMenu" parent="Widget">
|
||||
<item name="android:textColor">?attr/textColorPrimary</item>
|
||||
</style>
|
||||
@@ -320,19 +351,19 @@
|
||||
</style>
|
||||
<style name="TextAppearance.Sherlock.Light.Widget.PopupMenu.Small" parent="TextAppearance.Sherlock.Widget.PopupMenu.Small">
|
||||
</style>
|
||||
|
||||
|
||||
<style name="TextAppearance.Sherlock.Widget.TextView.SpinnerItem" parent="Widget">
|
||||
<item name="android:textColor">?textColorPrimary</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:textStyle">normal</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="TextAppearance.Sherlock.Widget.DropDownItem" parent="Widget">
|
||||
<item name="android:textColor">?textColorPrimaryDisableOnly</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:textStyle">normal</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="TextAppearance.Sherlock.DialogWindowTitle" parent="Widget">
|
||||
<item name="android:textSize">22sp</item>
|
||||
<item name="android:textColor">@color/abs__holo_blue_light</item>
|
||||
@@ -341,4 +372,13 @@
|
||||
<item name="android:textSize">22sp</item>
|
||||
<item name="android:textColor">@color/abs__holo_blue_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Sherlock.__TextAppearance.Small" parent="Widget">
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
||||
</style>
|
||||
<style name="TextAppearance.Sherlock.Small" parent="Sherlock.__TextAppearance.Small">
|
||||
</style>
|
||||
<style name="TextAppearance.Sherlock.Light.Small" parent="TextAppearance.Sherlock.Small">
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -36,6 +36,12 @@
|
||||
<item name="actionMenuTextColor">?attr/textColorPrimary</item>
|
||||
<item name="actionBarDivider">?attr/dividerVertical</item>
|
||||
<item name="actionBarItemBackground">@drawable/abs__item_background_holo_dark</item>
|
||||
|
||||
<item name="buttonStyleSmall">@style/Widget.Sherlock.Button.Small</item>
|
||||
|
||||
<item name="activatedBackgroundIndicator">@drawable/abs__activated_background_holo_dark</item>
|
||||
<item name="actionModeShareDrawable">@drawable/abs__ic_menu_share_holo_dark</item>
|
||||
<item name="activityChooserViewStyle">@style/Widget.Sherlock.ActivityChooserView</item>
|
||||
|
||||
<item name="homeAsUpIndicator">@drawable/abs__ic_ab_back_holo_dark</item>
|
||||
|
||||
@@ -50,11 +56,13 @@
|
||||
|
||||
<!-- Internal --><item name="dropdownListPreferredItemHeight">48dip</item>
|
||||
<item name="dropDownListViewStyle">@style/Widget.Sherlock.ListView.DropDown</item>
|
||||
|
||||
|
||||
<item name="textAppearanceSmall">@style/TextAppearance.Sherlock.Small</item>
|
||||
<item name="textAppearanceLargePopupMenu">@style/TextAppearance.Sherlock.Widget.PopupMenu.Large</item>
|
||||
<item name="textAppearanceSmallPopupMenu">@style/TextAppearance.Sherlock.Widget.PopupMenu.Small</item>
|
||||
|
||||
<item name="popupMenuStyle">@style/Widget.Sherlock.PopupMenu</item>
|
||||
<!-- Internal --><item name="listPopupWindowStyle">@style/Widget.Sherlock.ListPopupWindow</item>
|
||||
|
||||
<item name="windowActionBar">true</item>
|
||||
<item name="windowActionModeOverlay">false</item>
|
||||
@@ -84,6 +92,12 @@
|
||||
<item name="actionMenuTextColor">?attr/textColorPrimary</item>
|
||||
<item name="actionBarDivider">?attr/dividerVertical</item>
|
||||
<item name="actionBarItemBackground">@drawable/abs__item_background_holo_light</item>
|
||||
|
||||
<item name="buttonStyleSmall">@style/Widget.Sherlock.Light.Button.Small</item>
|
||||
|
||||
<item name="activatedBackgroundIndicator">@drawable/abs__activated_background_holo_light</item>
|
||||
<item name="actionModeShareDrawable">@drawable/abs__ic_menu_share_holo_light</item>
|
||||
<item name="activityChooserViewStyle">@style/Widget.Sherlock.Light.ActivityChooserView</item>
|
||||
|
||||
<item name="homeAsUpIndicator">@drawable/abs__ic_ab_back_holo_light</item>
|
||||
|
||||
@@ -98,11 +112,13 @@
|
||||
|
||||
<!-- Internal --><item name="dropdownListPreferredItemHeight">48dip</item>
|
||||
<item name="dropDownListViewStyle">@style/Widget.Sherlock.Light.ListView.DropDown</item>
|
||||
|
||||
|
||||
<item name="textAppearanceSmall">@style/TextAppearance.Sherlock.Light.Small</item>
|
||||
<item name="textAppearanceLargePopupMenu">@style/TextAppearance.Sherlock.Light.Widget.PopupMenu.Large</item>
|
||||
<item name="textAppearanceSmallPopupMenu">@style/TextAppearance.Sherlock.Light.Widget.PopupMenu.Small</item>
|
||||
|
||||
<item name="popupMenuStyle">@style/Widget.Sherlock.Light.PopupMenu</item>
|
||||
<!-- Internal --><item name="listPopupWindowStyle">@style/Widget.Sherlock.Light.ListPopupWindow</item>
|
||||
|
||||
<item name="windowActionBar">true</item>
|
||||
<item name="windowActionModeOverlay">false</item>
|
||||
@@ -125,10 +141,12 @@
|
||||
<item name="actionBarTabTextStyle">@style/Widget.Sherlock.Light.ActionBar.TabText.Inverse</item>
|
||||
<item name="actionBarDivider">@drawable/abs__list_divider_holo_dark</item>
|
||||
<item name="actionBarItemBackground">@drawable/abs__item_background_holo_dark</item>
|
||||
<item name="actionMenuTextColor">?android:attr/textColorPrimaryInverse</item>
|
||||
<item name="actionMenuTextColor">?attr/textColorPrimaryInverse</item>
|
||||
<item name="actionModeStyle">@style/Widget.Sherlock.Light.ActionMode.Inverse</item>
|
||||
<item name="actionModeCloseButtonStyle">@style/Widget.Sherlock.ActionButton.CloseMode</item>
|
||||
<item name="actionModePopupWindowStyle">@style/Widget.Sherlock.PopupWindow.ActionMode</item>
|
||||
|
||||
<item name="actionModeShareDrawable">@drawable/abs__ic_menu_share_holo_dark</item>
|
||||
</style>
|
||||
|
||||
|
||||
|
||||