Revamp of the NumberPicker widget.
1. The number picker no longer shows up and down arrows, it has only three touch targets which are the currently selected number in the middle with a lesser one above and greater below, now what you touch is what you get, flingability and long press are still supported. 2. Removed the restriction for a View with an AccessibilityNodeProvider to not have any concrete children. If the View has a provider, then this provider is responsible for creating the AccessibilityNodeInfos for all its descendants, concrete and virtual. The number picker is a good example for such a case - it has a concrete input view and two virtual buttons as its children. This is a safe change since this behavior has not been released. 3. This patch also fixes bug where the number picker is stretched too much in the Theme theme. bug:6177794 bug:5728294 Change-Id: I5fb370fe0b864a156f5f2aaf2de5f55f6b6d4e84
@ -26950,7 +26950,6 @@ package android.widget {
|
||||
method public void setOnValueChangedListener(android.widget.NumberPicker.OnValueChangeListener);
|
||||
method public void setValue(int);
|
||||
method public void setWrapSelectorWheel(boolean);
|
||||
field public static final int SELECTOR_WHEEL_ITEM_COUNT = 5; // 0x5
|
||||
}
|
||||
|
||||
public static abstract interface NumberPicker.Formatter {
|
||||
|
@ -2679,15 +2679,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
return child.draw(canvas, this, drawingTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestLayout() {
|
||||
if (mChildrenCount > 0 && getAccessibilityNodeProvider() != null) {
|
||||
throw new IllegalStateException("Views with AccessibilityNodeProvider"
|
||||
+ " can't have children.");
|
||||
}
|
||||
super.requestLayout();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param enabled True if children should be drawn with layers, false otherwise.
|
||||
@ -3109,11 +3100,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
private void addViewInner(View child, int index, LayoutParams params,
|
||||
boolean preventRequestLayout) {
|
||||
|
||||
if (getAccessibilityNodeProvider() != null) {
|
||||
throw new IllegalStateException("Views with AccessibilityNodeProvider"
|
||||
+ " can't have children.");
|
||||
}
|
||||
|
||||
if (mTransition != null) {
|
||||
// Don't prevent other add transitions from completing, but cancel remove
|
||||
// transitions to let them complete the process before we add to the container
|
||||
|
@ -29,8 +29,8 @@ import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.SparseArray;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.view.accessibility.AccessibilityManager;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
@ -280,9 +280,7 @@ public class DatePicker extends FrameLayout {
|
||||
reorderSpinners();
|
||||
|
||||
// set content descriptions
|
||||
if (AccessibilityManager.getInstance(mContext).isEnabled()) {
|
||||
setContentDescriptions();
|
||||
}
|
||||
setContentDescriptions();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -717,20 +715,27 @@ public class DatePicker extends FrameLayout {
|
||||
|
||||
private void setContentDescriptions() {
|
||||
// Day
|
||||
String text = mContext.getString(R.string.date_picker_increment_day_button);
|
||||
mDaySpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||
text = mContext.getString(R.string.date_picker_decrement_day_button);
|
||||
mDaySpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||
trySetContentDescription(mDaySpinner, R.id.increment,
|
||||
R.string.date_picker_increment_day_button);
|
||||
trySetContentDescription(mDaySpinner, R.id.decrement,
|
||||
R.string.date_picker_decrement_day_button);
|
||||
// Month
|
||||
text = mContext.getString(R.string.date_picker_increment_month_button);
|
||||
mMonthSpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||
text = mContext.getString(R.string.date_picker_decrement_month_button);
|
||||
mMonthSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||
trySetContentDescription(mMonthSpinner, R.id.increment,
|
||||
R.string.date_picker_increment_month_button);
|
||||
trySetContentDescription(mMonthSpinner, R.id.decrement,
|
||||
R.string.date_picker_decrement_month_button);
|
||||
// Year
|
||||
text = mContext.getString(R.string.date_picker_increment_year_button);
|
||||
mYearSpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||
text = mContext.getString(R.string.date_picker_decrement_year_button);
|
||||
mYearSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||
trySetContentDescription(mYearSpinner, R.id.increment,
|
||||
R.string.date_picker_increment_year_button);
|
||||
trySetContentDescription(mYearSpinner, R.id.decrement,
|
||||
R.string.date_picker_decrement_year_button);
|
||||
}
|
||||
|
||||
private void trySetContentDescription(View root, int viewId, int contDescResId) {
|
||||
View target = root.findViewById(viewId);
|
||||
if (target != null) {
|
||||
target.setContentDescription(mContext.getString(contDescResId));
|
||||
}
|
||||
}
|
||||
|
||||
private void updateInputState() {
|
||||
|
@ -532,21 +532,28 @@ public class TimePicker extends FrameLayout {
|
||||
|
||||
private void setContentDescriptions() {
|
||||
// Minute
|
||||
String text = mContext.getString(R.string.time_picker_increment_minute_button);
|
||||
mMinuteSpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||
text = mContext.getString(R.string.time_picker_decrement_minute_button);
|
||||
mMinuteSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||
trySetContentDescription(mMinuteSpinner, R.id.increment,
|
||||
R.string.time_picker_increment_minute_button);
|
||||
trySetContentDescription(mMinuteSpinner, R.id.decrement,
|
||||
R.string.time_picker_decrement_minute_button);
|
||||
// Hour
|
||||
text = mContext.getString(R.string.time_picker_increment_hour_button);
|
||||
mHourSpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||
text = mContext.getString(R.string.time_picker_decrement_hour_button);
|
||||
mHourSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||
trySetContentDescription(mHourSpinner, R.id.increment,
|
||||
R.string.time_picker_increment_hour_button);
|
||||
trySetContentDescription(mHourSpinner, R.id.decrement,
|
||||
R.string.time_picker_decrement_hour_button);
|
||||
// AM/PM
|
||||
if (mAmPmSpinner != null) {
|
||||
text = mContext.getString(R.string.time_picker_increment_set_pm_button);
|
||||
mAmPmSpinner.findViewById(R.id.increment).setContentDescription(text);
|
||||
text = mContext.getString(R.string.time_picker_decrement_set_am_button);
|
||||
mAmPmSpinner.findViewById(R.id.decrement).setContentDescription(text);
|
||||
trySetContentDescription(mAmPmSpinner, R.id.increment,
|
||||
R.string.time_picker_increment_set_pm_button);
|
||||
trySetContentDescription(mAmPmSpinner, R.id.decrement,
|
||||
R.string.time_picker_decrement_set_am_button);
|
||||
}
|
||||
}
|
||||
|
||||
private void trySetContentDescription(View root, int viewId, int contDescResId) {
|
||||
View target = root.findViewById(viewId);
|
||||
if (target != null) {
|
||||
target.setContentDescription(mContext.getString(contDescResId));
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 634 B |
Before Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 418 B |
Before Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 514 B |
Before Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 441 B |
Before Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 605 B |
Before Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 416 B |
Before Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 561 B |
Before Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 398 B |
Before Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 575 B |
Before Width: | Height: | Size: 446 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 412 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 394 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 466 B |
Before Width: | Height: | Size: 466 B |
Before Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 748 B |
Before Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 494 B |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 670 B |
Before Width: | Height: | Size: 670 B |
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_down_normal_holo_dark" />
|
||||
|
||||
<item android:state_pressed="true"
|
||||
android:state_enabled="true"
|
||||
android:drawable="@drawable/numberpicker_down_pressed_holo_dark" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_down_focused_holo_dark" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_down_disabled_holo_dark" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_down_disabled_focused_holo_dark" />
|
||||
|
||||
</selector>
|
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_down_normal_holo_light" />
|
||||
|
||||
<item android:state_pressed="true"
|
||||
android:state_enabled="true"
|
||||
android:drawable="@drawable/numberpicker_down_pressed_holo_light" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_down_focused_holo_light" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_down_disabled_holo_light" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_down_disabled_focused_holo_light" />
|
||||
|
||||
</selector>
|
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_up_normal_holo_dark" />
|
||||
|
||||
<item android:state_pressed="true"
|
||||
android:state_enabled="true"
|
||||
android:drawable="@drawable/numberpicker_up_pressed_holo_dark" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_up_focused_holo_dark" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_up_disabled_holo_dark" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_up_disabled_focused_holo_dark" />
|
||||
|
||||
</selector>
|
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_up_normal_holo_light" />
|
||||
|
||||
<item android:state_pressed="true"
|
||||
android:state_enabled="true"
|
||||
android:drawable="@drawable/numberpicker_up_pressed_holo_light" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="true"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_up_focused_holo_light" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="false"
|
||||
android:drawable="@drawable/numberpicker_up_focused_holo_light" />
|
||||
|
||||
<item android:state_pressed="false"
|
||||
android:state_enabled="false"
|
||||
android:state_focused="true"
|
||||
android:drawable="@drawable/numberpicker_up_disabled_focused_holo_light" />
|
||||
|
||||
</selector>
|
@ -22,19 +22,26 @@
|
||||
<ImageButton android:id="@+id/increment"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/numberPickerUpButtonStyle"
|
||||
android:background="@android:drawable/numberpicker_up_btn"
|
||||
android:paddingTop="22dip"
|
||||
android:paddingBottom="22dip"
|
||||
android:contentDescription="@string/number_picker_increment_button" />
|
||||
|
||||
<view class="android.widget.NumberPicker$CustomEditText"
|
||||
<EditText
|
||||
android:id="@+id/numberpicker_input"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/numberPickerInputTextStyle" />
|
||||
android:textAppearance="@style/TextAppearance.Large.Inverse.NumberPickerInputText"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:background="@drawable/numberpicker_input" />
|
||||
|
||||
<ImageButton android:id="@+id/decrement"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/numberPickerDownButtonStyle"
|
||||
android:background="@android:drawable/numberpicker_down_btn"
|
||||
android:paddingTop="22dip"
|
||||
android:paddingBottom="22dip"
|
||||
android:contentDescription="@string/number_picker_decrement_button" />
|
||||
|
||||
</merge>
|
||||
|
31
core/res/res/layout/number_picker_with_selector_wheel.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2012, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<view class="android.widget.NumberPicker$CustomEditText"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:id="@+id/numberpicker_input"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:background="@null" />
|
||||
|
||||
</merge>
|
@ -589,12 +589,6 @@
|
||||
|
||||
<!-- NumberPicker style. -->
|
||||
<attr name="numberPickerStyle" format="reference" />
|
||||
<!-- NumberPicker up button style. -->
|
||||
<attr name="numberPickerUpButtonStyle" format="reference" />
|
||||
<!-- NumberPicker down button style. -->
|
||||
<attr name="numberPickerDownButtonStyle" format="reference" />
|
||||
<!-- NumberPicker input text style. -->
|
||||
<attr name="numberPickerInputTextStyle" format="reference" />
|
||||
|
||||
<!-- The CalendarView style. -->
|
||||
<attr name="calendarViewStyle" format="reference" />
|
||||
@ -3617,12 +3611,12 @@
|
||||
<declare-styleable name="NumberPicker">
|
||||
<!-- @hide Color for the solid color background if such for optimized rendering. -->
|
||||
<attr name="solidColor" format="color|reference" />
|
||||
<!-- @hide Whether the number picker supports fligning. -->
|
||||
<attr name="flingable" format="boolean" />
|
||||
<!-- @hide The divider for making the selection area. -->
|
||||
<attr name="selectionDivider" format="reference" />
|
||||
<!-- @hide The height of the selection divider. -->
|
||||
<attr name="selectionDividerHeight" format="dimension" />
|
||||
<!-- @hide The distance between the two selection dividers. -->
|
||||
<attr name="selectionDividersDistance" format="dimension" />
|
||||
<!-- @hide The min height of the NumberPicker. -->
|
||||
<attr name="internalMinHeight" format="dimension" />
|
||||
<!-- @hide The max height of the NumberPicker. -->
|
||||
@ -3631,6 +3625,10 @@
|
||||
<attr name="internalMinWidth" format="dimension" />
|
||||
<!-- @hide The max width of the NumberPicker. -->
|
||||
<attr name="internalMaxWidth" format="dimension" />
|
||||
<!-- @hide The layout of the number picker. -->
|
||||
<attr name="internalLayout" />
|
||||
<!-- @hide The minimal move distance of a swipe to be considered a fling. -->
|
||||
<attr name="minFlingDistance" format="dimension" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="TimePicker">
|
||||
|
@ -3190,8 +3190,6 @@
|
||||
<string name="number_picker_increment_button">Increment</string>
|
||||
<!-- Description of the button to decrement the NumberPicker value. [CHAR LIMIT=NONE] -->
|
||||
<string name="number_picker_decrement_button">Decrement</string>
|
||||
<!-- Description of the tap and hold action to get into scroll mode in NumberPicker. [CHAR LIMIT=NONE] -->
|
||||
<string name="number_picker_increment_scroll_mode"><xliff:g id="value" example="3">%s</xliff:g> touch and hold.</string>
|
||||
<!-- Description of the scrolling action in NumberPicker. [CHAR LIMIT=NONE] -->
|
||||
<string name="number_picker_increment_scroll_action">Slide up to increment and down to decrement.</string>
|
||||
|
||||
|
@ -521,10 +521,10 @@ please see styles_device_defaults.xml.
|
||||
</style>
|
||||
|
||||
<style name="Widget.NumberPicker">
|
||||
<item name="android:internalLayout">@android:layout/number_picker</item>
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:fadingEdge">vertical</item>
|
||||
<item name="android:fadingEdgeLength">50dip</item>
|
||||
<item name="android:flingable">false</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.TimePicker">
|
||||
@ -536,25 +536,6 @@ please see styles_device_defaults.xml.
|
||||
<item name="android:calendarViewShown">false</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.ImageButton.NumberPickerUpButton">
|
||||
<item name="android:background">@android:drawable/numberpicker_up_btn</item>
|
||||
<item name="android:paddingTop">22dip</item>
|
||||
<item name="android:paddingBottom">22dip</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.ImageButton.NumberPickerDownButton">
|
||||
<item name="android:background">@android:drawable/numberpicker_down_btn</item>
|
||||
<item name="android:paddingTop">22dip</item>
|
||||
<item name="android:paddingBottom">22dip</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.EditText.NumberPickerInputText">
|
||||
<item name="android:textAppearance">@style/TextAppearance.Large.Inverse.NumberPickerInputText</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:background">@drawable/numberpicker_input</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.AutoCompleteTextView" parent="Widget.EditText">
|
||||
<item name="android:completionHintView">@android:layout/simple_dropdown_hint</item>
|
||||
<item name="android:completionThreshold">2</item>
|
||||
@ -1656,12 +1637,14 @@ please see styles_device_defaults.xml.
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.NumberPicker" parent="Widget.NumberPicker">
|
||||
<item name="android:internalLayout">@android:layout/number_picker_with_selector_wheel</item>
|
||||
<item name="android:solidColor">@android:color/transparent</item>
|
||||
<item name="android:flingable">true</item>
|
||||
<item name="android:selectionDivider">@android:drawable/numberpicker_selection_divider</item>
|
||||
<item name="android:selectionDividerHeight">2dip</item>
|
||||
<item name="android:selectionDividersDistance">48dip</item>
|
||||
<item name="android:internalMinWidth">48dip</item>
|
||||
<item name="android:internalMaxHeight">200dip</item>
|
||||
<item name="android:minFlingDistance">150dip</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.TimePicker" parent="Widget.TimePicker">
|
||||
@ -1673,31 +1656,6 @@ please see styles_device_defaults.xml.
|
||||
<item name="android:calendarViewShown">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.ImageButton.NumberPickerUpButton">
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:src">@android:drawable/numberpicker_up_btn_holo_dark</item>
|
||||
<item name="android:paddingTop">16dip</item>
|
||||
<item name="android:paddingBottom">22dip</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.ImageButton.NumberPickerDownButton">
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:src">@android:drawable/numberpicker_down_btn_holo_dark</item>
|
||||
<item name="android:paddingTop">22dip</item>
|
||||
<item name="android:paddingBottom">16dip</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.EditText.NumberPickerInputText">
|
||||
<item name="android:paddingTop">13sp</item>
|
||||
<item name="android:paddingBottom">13sp</item>
|
||||
<item name="android:paddingLeft">2sp</item>
|
||||
<item name="android:paddingRight">2sp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:background">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.ActivityChooserView" parent="Widget.ActivityChooserView">
|
||||
</style>
|
||||
|
||||
@ -2109,17 +2067,6 @@ please see styles_device_defaults.xml.
|
||||
<style name="Widget.Holo.Light.DatePicker" parent="Widget.Holo.DatePicker">
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.ImageButton.NumberPickerUpButton" parent="Widget.Holo.ImageButton.NumberPickerUpButton">
|
||||
<item name="android:src">@android:drawable/numberpicker_up_btn_holo_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.ImageButton.NumberPickerDownButton" parent="Widget.Holo.ImageButton.NumberPickerDownButton">
|
||||
<item name="android:src">@android:drawable/numberpicker_down_btn_holo_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.EditText.NumberPickerInputText" parent="Widget.Holo.EditText.NumberPickerInputText">
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.ActivityChooserView" parent="Widget.Holo.ActivityChooserView">
|
||||
<item name="android:background">@android:drawable/ab_share_pack_holo_light</item>
|
||||
</style>
|
||||
|
@ -199,9 +199,6 @@ easier.
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.CompoundButton.Switch" parent="Widget.Holo.CompoundButton.Switch">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.EditText.NumberPickerInputText" parent="Widget.Holo.EditText.NumberPickerInputText">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.ExpandableListView.White" parent="Widget.Holo.ExpandableListView.White">
|
||||
|
||||
@ -211,12 +208,6 @@ easier.
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.GestureOverlayView" parent="Widget.Holo.GestureOverlayView">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.ImageButton.NumberPickerDownButton" parent="Widget.Holo.ImageButton.NumberPickerDownButton">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.ImageButton.NumberPickerUpButton" parent="Widget.Holo.ImageButton.NumberPickerUpButton">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.ImageWell" parent="Widget.Holo.ImageWell">
|
||||
|
||||
@ -464,9 +455,6 @@ easier.
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.DatePicker" parent="Widget.Holo.Light.DatePicker">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.EditText.NumberPickerInputText" parent="Widget.Holo.Light.EditText.NumberPickerInputText">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.ExpandableListView.White" parent="Widget.Holo.Light.ExpandableListView.White">
|
||||
|
||||
@ -476,12 +464,6 @@ easier.
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.GestureOverlayView" parent="Widget.Holo.Light.GestureOverlayView">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.ImageButton.NumberPickerDownButton" parent="Widget.Holo.Light.ImageButton.NumberPickerDownButton">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.ImageButton.NumberPickerUpButton" parent="Widget.Holo.Light.ImageButton.NumberPickerUpButton">
|
||||
|
||||
</style>
|
||||
<style name="Widget.DeviceDefault.Light.ImageWell" parent="Widget.Holo.Light.ImageWell">
|
||||
|
||||
|
@ -345,10 +345,7 @@ please see themes_device_defaults.xml.
|
||||
<!-- PreferenceFrameLayout attributes -->
|
||||
<item name="preferenceFrameLayoutStyle">@android:style/Widget.PreferenceFrameLayout</item>
|
||||
|
||||
<!-- NumberPicker styles-->
|
||||
<item name="numberPickerUpButtonStyle">@style/Widget.ImageButton.NumberPickerUpButton</item>
|
||||
<item name="numberPickerDownButtonStyle">@style/Widget.ImageButton.NumberPickerDownButton</item>
|
||||
<item name="numberPickerInputTextStyle">@style/Widget.EditText.NumberPickerInputText</item>
|
||||
<!-- NumberPicker style-->
|
||||
<item name="numberPickerStyle">@style/Widget.NumberPicker</item>
|
||||
|
||||
<!-- CalendarView style-->
|
||||
@ -1141,10 +1138,7 @@ please see themes_device_defaults.xml.
|
||||
<!-- PreferenceFrameLayout attributes -->
|
||||
<item name="preferenceFrameLayoutStyle">@android:style/Widget.Holo.PreferenceFrameLayout</item>
|
||||
|
||||
<!-- NumberPicker styles-->
|
||||
<item name="numberPickerUpButtonStyle">@style/Widget.Holo.ImageButton.NumberPickerUpButton</item>
|
||||
<item name="numberPickerDownButtonStyle">@style/Widget.Holo.ImageButton.NumberPickerDownButton</item>
|
||||
<item name="numberPickerInputTextStyle">@style/Widget.Holo.EditText.NumberPickerInputText</item>
|
||||
<!-- NumberPicker style-->
|
||||
<item name="numberPickerStyle">@style/Widget.Holo.NumberPicker</item>
|
||||
|
||||
<!-- CalendarView style-->
|
||||
@ -1443,10 +1437,7 @@ please see themes_device_defaults.xml.
|
||||
|
||||
<item name="searchDialogTheme">@style/Theme.Holo.Light.SearchBar</item>
|
||||
|
||||
<!-- NumberPicker attributes and styles-->
|
||||
<item name="numberPickerUpButtonStyle">@style/Widget.Holo.Light.ImageButton.NumberPickerUpButton</item>
|
||||
<item name="numberPickerDownButtonStyle">@style/Widget.Holo.Light.ImageButton.NumberPickerDownButton</item>
|
||||
<item name="numberPickerInputTextStyle">@style/Widget.Holo.Light.EditText.NumberPickerInputText</item>
|
||||
<!-- NumberPicker style-->
|
||||
<item name="numberPickerStyle">@style/Widget.Holo.Light.NumberPicker</item>
|
||||
|
||||
<!-- CalendarView style-->
|
||||
|
@ -179,10 +179,7 @@ easier.
|
||||
<!-- PreferenceFrameLayout attributes -->
|
||||
<item name="preferenceFrameLayoutStyle">@android:style/Widget.DeviceDefault.PreferenceFrameLayout</item>
|
||||
|
||||
<!-- NumberPicker styles-->
|
||||
<item name="numberPickerUpButtonStyle">@style/Widget.DeviceDefault.ImageButton.NumberPickerUpButton</item>
|
||||
<item name="numberPickerDownButtonStyle">@style/Widget.DeviceDefault.ImageButton.NumberPickerDownButton</item>
|
||||
<item name="numberPickerInputTextStyle">@style/Widget.DeviceDefault.EditText.NumberPickerInputText</item>
|
||||
<!-- NumberPicker style-->
|
||||
<item name="numberPickerStyle">@style/Widget.DeviceDefault.NumberPicker</item>
|
||||
|
||||
<!-- CalendarView style-->
|
||||
@ -329,10 +326,7 @@ easier.
|
||||
|
||||
<item name="searchDialogTheme">@style/Theme.DeviceDefault.Light.SearchBar</item>
|
||||
|
||||
<!-- NumberPicker attributes and styles-->
|
||||
<item name="numberPickerUpButtonStyle">@style/Widget.DeviceDefault.Light.ImageButton.NumberPickerUpButton</item>
|
||||
<item name="numberPickerDownButtonStyle">@style/Widget.DeviceDefault.Light.ImageButton.NumberPickerDownButton</item>
|
||||
<item name="numberPickerInputTextStyle">@style/Widget.DeviceDefault.Light.EditText.NumberPickerInputText</item>
|
||||
<!-- NumberPicker style -->
|
||||
<item name="numberPickerStyle">@style/Widget.DeviceDefault.Light.NumberPicker</item>
|
||||
|
||||
<!-- CalendarView style-->
|
||||
|