am 6b1e6969: Rename tab widget attributes, remove scroll barrier constant. Bug #2553515 #2553595

Merge commit '6b1e6969828f05a2f5f55825fdf16b19c9dce2dd' into froyo-plus-aosp

* commit '6b1e6969828f05a2f5f55825fdf16b19c9dce2dd':
  Rename tab widget attributes, remove scroll barrier constant.
This commit is contained in:
Romain Guy
2010-03-29 14:49:09 -07:00
committed by Android Git Automerger
6 changed files with 45 additions and 58 deletions

View File

@@ -7830,39 +7830,6 @@
visibility="public" visibility="public"
> >
</field> </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" <field name="suggestActionMsg"
type="int" type="int"
transient="false" transient="false"
@@ -7951,6 +7918,39 @@
visibility="public" visibility="public"
> >
</field> </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" <field name="tabWidgetStyle"
type="int" type="int"
transient="false" transient="false"

View File

@@ -34,11 +34,6 @@ public class HapticFeedbackConstants {
* The user has pressed on a virtual on-screen key. * The user has pressed on a virtual on-screen key.
*/ */
public static final int VIRTUAL_KEY = 1; 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. * 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; newScrollY = top;
clampedY = true; 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); onOverscrolled(newScrollX, newScrollY, clampedX, clampedY);

View File

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

View File

@@ -1874,11 +1874,11 @@
<!-- Drawable used to draw the divider between tabs. --> <!-- Drawable used to draw the divider between tabs. -->
<attr name="divider" /> <attr name="divider" />
<!-- Determines whether the strip under the tab indicators is drawn or not. --> <!-- 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. --> <!-- 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. --> <!-- 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>
<declare-styleable name="TextAppearance"> <declare-styleable name="TextAppearance">
<!-- Text color. --> <!-- Text color. -->

View File

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