Rename tab widget attributes, remove scroll barrier constant.

Bug #2553515 #2553595

Change-Id: Id36280a57f00a1ee59251be6be1aae8df2189c09
This commit is contained in:
Romain Guy
2010-03-29 14:38:41 -07:00
parent ab69e29c19
commit 6b1e696982
6 changed files with 45 additions and 58 deletions

View File

@@ -7830,39 +7830,6 @@
visibility="public"
>
</field>
<field name="stripEnabled"
type="int"
transient="false"
volatile="false"
value="16843454"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="stripLeft"
type="int"
transient="false"
volatile="false"
value="16843452"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="stripRight"
type="int"
transient="false"
volatile="false"
value="16843453"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="suggestActionMsg"
type="int"
transient="false"
@@ -7951,6 +7918,39 @@
visibility="public"
>
</field>
<field name="tabStripEnabled"
type="int"
transient="false"
volatile="false"
value="16843454"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="tabStripLeft"
type="int"
transient="false"
volatile="false"
value="16843452"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="tabStripRight"
type="int"
transient="false"
volatile="false"
value="16843453"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="tabWidgetStyle"
type="int"
transient="false"

View File

@@ -34,11 +34,6 @@ public class HapticFeedbackConstants {
* The user has pressed on a virtual on-screen key.
*/
public static final int VIRTUAL_KEY = 1;
/**
* The user has hit the barrier point while scrolling a view.
*/
public static final int SCROLL_BARRIER = 2;
/**
* The user has pressed a soft keyboard key.

View File

@@ -8771,14 +8771,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
newScrollY = top;
clampedY = true;
}
// Bump the device with some haptic feedback if we're at the edge,
// didn't start there, and the scroll is the result of a touch event.
if (isTouchEvent &&
((overscrollHorizontal && clampedX && scrollX != left && scrollX != right) ||
(overscrollVertical && clampedY && scrollY != top && scrollY != bottom))) {
performHapticFeedback(HapticFeedbackConstants.SCROLL_BARRIER);
}
onOverscrolled(newScrollX, newScrollY, clampedX, clampedY);

View File

@@ -42,9 +42,9 @@ import android.view.View.OnFocusChangeListener;
* called on the containing TabHost object.
*
* @attr ref android.R.styleable#TabWidget_divider
* @attr ref android.R.styleable#TabWidget_stripEnabled
* @attr ref android.R.styleable#TabWidget_stripLeft
* @attr ref android.R.styleable#TabWidget_stripRight
* @attr ref android.R.styleable#TabWidget_tabStripEnabled
* @attr ref android.R.styleable#TabWidget_tabStripLeft
* @attr ref android.R.styleable#TabWidget_tabStripRight
*/
public class TabWidget extends LinearLayout implements OnFocusChangeListener {
private OnTabSelectionChanged mSelectionChangedListener;
@@ -76,10 +76,10 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.TabWidget,
defStyle, 0);
mDrawBottomStrips = a.getBoolean(R.styleable.TabWidget_stripEnabled, true);
mDrawBottomStrips = a.getBoolean(R.styleable.TabWidget_tabStripEnabled, true);
mDividerDrawable = a.getDrawable(R.styleable.TabWidget_divider);
mLeftStrip = a.getDrawable(R.styleable.TabWidget_stripLeft);
mRightStrip = a.getDrawable(R.styleable.TabWidget_stripRight);
mLeftStrip = a.getDrawable(R.styleable.TabWidget_tabStripLeft);
mRightStrip = a.getDrawable(R.styleable.TabWidget_tabStripRight);
a.recycle();

View File

@@ -1874,11 +1874,11 @@
<!-- Drawable used to draw the divider between tabs. -->
<attr name="divider" />
<!-- Determines whether the strip under the tab indicators is drawn or not. -->
<attr name="stripEnabled" format="boolean" />
<attr name="tabStripEnabled" format="boolean" />
<!-- Drawable used to draw the left part of the strip underneath the tabs. -->
<attr name="stripLeft" format="reference" />
<attr name="tabStripLeft" format="reference" />
<!-- Drawable used to draw the right part of the strip underneath the tabs. -->
<attr name="stripRight" format="reference" />
<attr name="tabStripRight" format="reference" />
</declare-styleable>
<declare-styleable name="TextAppearance">
<!-- Text color. -->

View File

@@ -1232,9 +1232,9 @@
<public type="attr" name="webTextViewStyle" id="0x010102b9" />
<public type="attr" name="overscrollMode" id="0x010102ba" />
<public type="attr" name="restoreAnyVersion" id="0x010102bb" />
<public type="attr" name="stripLeft" id="0x010102bc" />
<public type="attr" name="stripRight" id="0x010102bd" />
<public type="attr" name="stripEnabled" id="0x010102be" />
<public type="attr" name="tabStripLeft" id="0x010102bc" />
<public type="attr" name="tabStripRight" id="0x010102bd" />
<public type="attr" name="tabStripEnabled" id="0x010102be" />
<public type="attr" name="overscrollHeader" id="0x010102bf" />
<public type="attr" name="overscrollFooter" id="0x010102c0" />