Methods Summary |
---|
public static ViewPropertyAnimatorCompat | animate(android.view.View view)This method returns a ViewPropertyAnimator object, which can be used to animate
specific properties on this View.
Prior to API 14, this method will do nothing.
return IMPL.animate(view);
|
public static boolean | canScrollHorizontally(android.view.View v, int direction)Check if this view can be scrolled horizontally in a certain direction.
final int version = android.os.Build.VERSION.SDK_INT;
if (version >= 21) {
IMPL = new Api21ViewCompatImpl();
} else if (version >= 19) {
IMPL = new KitKatViewCompatImpl();
} else if (version >= 17) {
IMPL = new JbMr1ViewCompatImpl();
} else if (version >= 16) {
IMPL = new JBViewCompatImpl();
} else if (version >= 14) {
IMPL = new ICSViewCompatImpl();
} else if (version >= 11) {
IMPL = new HCViewCompatImpl();
} else if (version >= 9) {
IMPL = new GBViewCompatImpl();
} else if (version >= 7) {
IMPL = new EclairMr1ViewCompatImpl();
} else {
IMPL = new BaseViewCompatImpl();
}
return IMPL.canScrollHorizontally(v, direction);
|
public static boolean | canScrollVertically(android.view.View v, int direction)Check if this view can be scrolled vertically in a certain direction.
return IMPL.canScrollVertically(v, direction);
|
public static void | dispatchFinishTemporaryDetach(android.view.View view)Notify a view that its temporary detach has ended; the view is now reattached.
IMPL.dispatchFinishTemporaryDetach(view);
|
public static void | dispatchStartTemporaryDetach(android.view.View view)Notify a view that it is being temporarily detached.
IMPL.dispatchStartTemporaryDetach(view);
|
public static int | getAccessibilityLiveRegion(android.view.View view)Gets the live region mode for the specified View.
return IMPL.getAccessibilityLiveRegion(view);
|
public static android.support.v4.view.accessibility.AccessibilityNodeProviderCompat | getAccessibilityNodeProvider(android.view.View view)Gets the provider for managing a virtual view hierarchy rooted at this View
and reported to {@link android.accessibilityservice.AccessibilityService}s
that explore the window content.
If this method returns an instance, this instance is responsible for managing
{@link AccessibilityNodeInfoCompat}s describing the virtual sub-tree rooted at
this View including the one representing the View itself. Similarly the returned
instance is responsible for performing accessibility actions on any virtual
view or the root view itself.
If an {@link AccessibilityDelegateCompat} has been specified via calling
{@link #setAccessibilityDelegate(View, AccessibilityDelegateCompat)} its
{@link AccessibilityDelegateCompat#getAccessibilityNodeProvider(View)}
is responsible for handling this call.
return IMPL.getAccessibilityNodeProvider(view);
|
public static float | getAlpha(android.view.View view)The opacity of the view. This is a value from 0 to 1, where 0 means the view is
completely transparent and 1 means the view is completely opaque.
By default this is 1.0f. Prior to API 11, the returned value is always 1.0f.
return IMPL.getAlpha(view);
|
public static float | getElevation(android.view.View view)The base elevation of this view relative to its parent, in pixels.
return IMPL.getElevation(view);
|
public static boolean | getFitsSystemWindows(android.view.View v)Returns true if this view should adapt to fit system window insets. This method will always
return false before API 16 (Jellybean).
return IMPL.getFitsSystemWindows(v);
|
public static int | getImportantForAccessibility(android.view.View view)Gets the mode for determining whether this View is important for accessibility
which is if it fires accessibility events and if it is reported to
accessibility services that query the screen.
return IMPL.getImportantForAccessibility(view);
|
public static int | getLabelFor(android.view.View view)Gets the id of a view for which a given view serves as a label for
accessibility purposes.
return IMPL.getLabelFor(view);
|
public static int | getLayerType(android.view.View view)Indicates what type of layer is currently associated with this view. By default
a view does not have a layer, and the layer type is {@link #LAYER_TYPE_NONE}.
Refer to the documentation of
{@link #setLayerType(android.view.View, int, android.graphics.Paint)}
for more information on the different types of layers.
return IMPL.getLayerType(view);
|
public static int | getLayoutDirection(android.view.View view)Returns the resolved layout direction for this view.
return IMPL.getLayoutDirection(view);
|
public static int | getMeasuredHeightAndState(android.view.View view)Return the full height measurement information for this view as computed
by the most recent call to {@link android.view.View#measure(int, int)}.
This result is a bit mask as defined by {@link #MEASURED_SIZE_MASK} and
{@link #MEASURED_STATE_TOO_SMALL}.
This should be used during measurement and layout calculations only. Use
{@link android.view.View#getHeight()} to see how wide a view is after layout.
return IMPL.getMeasuredHeightAndState(view);
|
public static int | getMeasuredState(android.view.View view)Return only the state bits of {@link #getMeasuredWidthAndState}
and {@link #getMeasuredHeightAndState}, combined into one integer.
The width component is in the regular bits {@link #MEASURED_STATE_MASK}
and the height component is at the shifted bits
{@link #MEASURED_HEIGHT_STATE_SHIFT}>>{@link #MEASURED_STATE_MASK}.
return IMPL.getMeasuredState(view);
|
public static int | getMeasuredWidthAndState(android.view.View view)Return the full width measurement information for this view as computed
by the most recent call to {@link android.view.View#measure(int, int)}.
This result is a bit mask as defined by {@link #MEASURED_SIZE_MASK} and
{@link #MEASURED_STATE_TOO_SMALL}.
This should be used during measurement and layout calculations only. Use
{@link android.view.View#getWidth()} to see how wide a view is after layout.
return IMPL.getMeasuredWidthAndState(view);
|
public static int | getMinimumHeight(android.view.View view)Returns the minimum height of the view.
Prior to API 16 this will return 0.
return IMPL.getMinimumHeight(view);
|
public static int | getMinimumWidth(android.view.View view)Returns the minimum width of the view.
Prior to API 16 this will return 0.
return IMPL.getMinimumWidth(view);
|
public static int | getOverScrollMode(android.view.View v)Returns the over-scroll mode for this view. The result will be
one of {@link #OVER_SCROLL_ALWAYS} (default), {@link #OVER_SCROLL_IF_CONTENT_SCROLLS}
(allow over-scrolling only if the view content is larger than the container),
or {@link #OVER_SCROLL_NEVER}.
return IMPL.getOverScrollMode(v);
|
public static int | getPaddingEnd(android.view.View view)Returns the end padding of the specified view depending on its resolved layout direction.
If there are inset and enabled scrollbars, this value may include the space
required to display the scrollbars as well.
return IMPL.getPaddingEnd(view);
|
public static int | getPaddingStart(android.view.View view)Returns the start padding of the specified view depending on its resolved layout direction.
If there are inset and enabled scrollbars, this value may include the space
required to display the scrollbars as well.
return IMPL.getPaddingStart(view);
|
public static android.view.ViewParent | getParentForAccessibility(android.view.View view)Gets the parent for accessibility purposes. Note that the parent for
accessibility is not necessary the immediate parent. It is the first
predecessor that is important for accessibility.
return IMPL.getParentForAccessibility(view);
|
public static float | getPivotX(android.view.View view)The x location of the point around which the view is
{@link #setRotation(View, float) rotated} and {@link #setScaleX(View, float) scaled}.
Prior to API 11 this will have no effect.
return IMPL.getPivotX(view);
|
public static float | getPivotY(android.view.View view)The y location of the point around which the view is {@link #setRotation(View,
float) rotated} and {@link #setScaleY(View, float) scaled}.
Prior to API 11 this will return 0.
return IMPL.getPivotY(view);
|
public static float | getRotation(android.view.View view)
return IMPL.getRotation(view);
|
public static float | getRotationX(android.view.View view)
return IMPL.getRotationX(view);
|
public static float | getRotationY(android.view.View view)
return IMPL.getRotationY(view);
|
public static float | getScaleX(android.view.View view)
return IMPL.getScaleX(view);
|
public static float | getScaleY(android.view.View view)
return IMPL.getScaleY(view);
|
public static java.lang.String | getTransitionName(android.view.View view)Returns the name of the View to be used to identify Views in Transitions.
Names should be unique in the View hierarchy.
This returns null if the View has not been given a name.
return IMPL.getTransitionName(view);
|
public static float | getTranslationX(android.view.View view)The horizontal location of this view relative to its {@link View#getLeft() left} position.
This position is post-layout, in addition to wherever the object's
layout placed it.
Prior to API 11 this will return 0.
return IMPL.getTranslationX(view);
|
public static float | getTranslationY(android.view.View view)The vertical location of this view relative to its {@link View#getTop() left} position.
This position is post-layout, in addition to wherever the object's
layout placed it.
Prior to API 11 this will return 0.
return IMPL.getTranslationY(view);
|
public static float | getTranslationZ(android.view.View view)The depth location of this view relative to its {@link #getElevation(View) elevation}.
return IMPL.getTranslationZ(view);
|
public static int | getWindowSystemUiVisibility(android.view.View view)Returns the current system UI visibility that is currently set for the entire window.
return IMPL.getWindowSystemUiVisibility(view);
|
public static float | getX(android.view.View view)
return IMPL.getX(view);
|
public static float | getY(android.view.View view)
return IMPL.getY(view);
|
public static boolean | hasAccessibilityDelegate(android.view.View v)Checks whether provided View has an accessibility delegate attached to it.
return IMPL.hasAccessibilityDelegate(v);
|
public static boolean | hasTransientState(android.view.View view)Indicates whether the view is currently tracking transient state that the
app should not need to concern itself with saving and restoring, but that
the framework should take special note to preserve when possible.
return IMPL.hasTransientState(view);
|
public static boolean | isOpaque(android.view.View view)Indicates whether this View is opaque. An opaque View guarantees that it will
draw all the pixels overlapping its bounds using a fully opaque color.
On API 7 and above this will call View's true isOpaque method. On previous platform
versions it will check the opacity of the view's background drawable if present.
return IMPL.isOpaque(view);
|
public static void | jumpDrawablesToCurrentState(android.view.View v)On API 11 devices and above, call Drawable.jumpToCurrentState()
on all Drawable objects associated with this view.
On API 21 and above, also calls StateListAnimator#jumpToCurrentState()
if there is a StateListAnimator attached to this view.
IMPL.jumpDrawablesToCurrentState(v);
|
public static void | onInitializeAccessibilityEvent(android.view.View v, android.view.accessibility.AccessibilityEvent event)Initializes an {@link AccessibilityEvent} with information about
this View which is the event source. In other words, the source of
an accessibility event is the view whose state change triggered firing
the event.
Example: Setting the password property of an event in addition
to properties set by the super implementation:
public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
super.onInitializeAccessibilityEvent(event);
event.setPassword(true);
}
If an {@link android.view.View.AccessibilityDelegate} has been specified via calling
{@link View#setAccessibilityDelegate(android.view.View.AccessibilityDelegate)} its
{@link android.view.View.AccessibilityDelegate#onInitializeAccessibilityEvent(View,
AccessibilityEvent)}
is responsible for handling this call.
Note: Always call the super implementation before adding
information to the event, in case the default implementation has basic information to add.
IMPL.onInitializeAccessibilityEvent(v, event);
|
public static void | onInitializeAccessibilityNodeInfo(android.view.View v, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat info)Initializes an {@link android.view.accessibility.AccessibilityNodeInfo} with information
about this view. The base implementation sets:
- {@link android.view.accessibility.AccessibilityNodeInfo#setParent(View)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setBoundsInParent(Rect)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setBoundsInScreen(Rect)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setPackageName(CharSequence)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setClassName(CharSequence)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setContentDescription(CharSequence)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setEnabled(boolean)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setClickable(boolean)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setFocusable(boolean)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setFocused(boolean)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setLongClickable(boolean)},
- {@link android.view.accessibility.AccessibilityNodeInfo#setSelected(boolean)},
Subclasses should override this method, call the super implementation,
and set additional attributes.
If an {@link android.view.View.AccessibilityDelegate} has been specified via calling
{@link View#setAccessibilityDelegate(android.view.View.AccessibilityDelegate)} its
{@link android.view.View.AccessibilityDelegate#onInitializeAccessibilityNodeInfo(View,
android.view.accessibility.AccessibilityNodeInfo)}
is responsible for handling this call.
IMPL.onInitializeAccessibilityNodeInfo(v, info);
|
public static void | onPopulateAccessibilityEvent(android.view.View v, android.view.accessibility.AccessibilityEvent event)Called from {@link View#dispatchPopulateAccessibilityEvent(AccessibilityEvent)}
giving a chance to this View to populate the accessibility event with its
text content. While this method is free to modify event
attributes other than text content, doing so should normally be performed in
{@link View#onInitializeAccessibilityEvent(AccessibilityEvent)}.
Example: Adding formatted date string to an accessibility event in addition
to the text added by the super implementation:
public void onPopulateAccessibilityEvent(AccessibilityEvent event) {
super.onPopulateAccessibilityEvent(event);
final int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_WEEKDAY;
String selectedDateUtterance = DateUtils.formatDateTime(mContext,
mCurrentDate.getTimeInMillis(), flags);
event.getText().add(selectedDateUtterance);
}
If an {@link android.view.View.AccessibilityDelegate} has been specified via calling
{@link View#setAccessibilityDelegate(android.view.View.AccessibilityDelegate)} its
{@link android.view.View.AccessibilityDelegate#onPopulateAccessibilityEvent(View,
AccessibilityEvent)}
is responsible for handling this call.
Note: Always call the super implementation before adding
information to the event, in case the default implementation has basic information to add.
IMPL.onPopulateAccessibilityEvent(v, event);
|
public static boolean | performAccessibilityAction(android.view.View view, int action, android.os.Bundle arguments)Performs the specified accessibility action on the view. For
possible accessibility actions look at {@link AccessibilityNodeInfoCompat}.
If an {@link AccessibilityDelegateCompat} has been specified via calling
{@link #setAccessibilityDelegate(View, AccessibilityDelegateCompat)} its
{@link AccessibilityDelegateCompat#performAccessibilityAction(View, int, Bundle)}
is responsible for handling this call.
return IMPL.performAccessibilityAction(view, action, arguments);
|
public static void | postInvalidateOnAnimation(android.view.View view)Cause an invalidate to happen on the next animation time step, typically the
next display frame.
This method can be invoked from outside of the UI thread
only when this View is attached to a window.
IMPL.postInvalidateOnAnimation(view);
|
public static void | postInvalidateOnAnimation(android.view.View view, int left, int top, int right, int bottom)Cause an invalidate of the specified area to happen on the next animation
time step, typically the next display frame.
This method can be invoked from outside of the UI thread
only when this View is attached to a window.
IMPL.postInvalidateOnAnimation(view, left, top, right, bottom);
|
public static void | postOnAnimation(android.view.View view, java.lang.Runnable action)Causes the Runnable to execute on the next animation time step.
The runnable will be run on the user interface thread.
This method can be invoked from outside of the UI thread
only when this View is attached to a window.
IMPL.postOnAnimation(view, action);
|
public static void | postOnAnimationDelayed(android.view.View view, java.lang.Runnable action, long delayMillis)Causes the Runnable to execute on the next animation time step,
after the specified amount of time elapses.
The runnable will be run on the user interface thread.
This method can be invoked from outside of the UI thread
only when this View is attached to a window.
IMPL.postOnAnimationDelayed(view, action, delayMillis);
|
public static void | requestApplyInsets(android.view.View view)Ask that a new dispatch of {@code View.onApplyWindowInsets(WindowInsets)} be performed. This
falls back to {@code View.requestFitSystemWindows()} where available.
IMPL.requestApplyInsets(view);
|
public static int | resolveSizeAndState(int size, int measureSpec, int childMeasuredState)Utility to reconcile a desired size and state, with constraints imposed
by a MeasureSpec. Will take the desired size, unless a different size
is imposed by the constraints. The returned value is a compound integer,
with the resolved size in the {@link #MEASURED_SIZE_MASK} bits and
optionally the bit {@link #MEASURED_STATE_TOO_SMALL} set if the resulting
size is smaller than the size the view wants to be.
return IMPL.resolveSizeAndState(size, measureSpec, childMeasuredState);
|
public static void | setAccessibilityDelegate(android.view.View v, AccessibilityDelegateCompat delegate)Sets a delegate for implementing accessibility support via compositon as
opposed to inheritance. The delegate's primary use is for implementing
backwards compatible widgets. For more details see
{@link android.view.View.AccessibilityDelegate}.
IMPL.setAccessibilityDelegate(v, delegate);
|
public static void | setAccessibilityLiveRegion(android.view.View view, int mode)Sets the live region mode for the specified view. This indicates to
accessibility services whether they should automatically notify the user
about changes to the view's content description or text, or to the
content descriptions or text of the view's children (where applicable).
For example, in a login screen with a TextView that displays an "incorrect
password" notification, that view should be marked as a live region with
mode {@link #ACCESSIBILITY_LIVE_REGION_POLITE}.
To disable change notifications for this view, use
{@link #ACCESSIBILITY_LIVE_REGION_NONE}. This is the default live region
mode for most views.
To indicate that the user should be notified of changes, use
{@link #ACCESSIBILITY_LIVE_REGION_POLITE}.
If the view's changes should interrupt ongoing speech and notify the user
immediately, use {@link #ACCESSIBILITY_LIVE_REGION_ASSERTIVE}.
IMPL.setAccessibilityLiveRegion(view, mode);
|
public static void | setActivated(android.view.View view, boolean activated)Changes the activated state of this view. A view can be activated or not.
Note that activation is not the same as selection. Selection is
a transient property, representing the view (hierarchy) the user is
currently interacting with. Activation is a longer-term state that the
user can move views in and out of.
IMPL.setActivated(view, activated);
|
public static void | setAlpha(android.view.View view, float value)Sets the opacity of the view. This is a value from 0 to 1, where 0 means the view is
completely transparent and 1 means the view is completely opaque.
Note that setting alpha to a translucent value (0 < alpha < 1) can have significant
performance implications, especially for large views. It is best to use the alpha property
sparingly and transiently, as in the case of fading animations.
Prior to API 11 this will have no effect.
IMPL.setAlpha(view, value);
|
public static void | setChildrenDrawingOrderEnabled(android.view.ViewGroup viewGroup, boolean enabled)Tells the ViewGroup whether to draw its children in the order defined by the method
{@code ViewGroup.getChildDrawingOrder(int, int)}.
IMPL.setChildrenDrawingOrderEnabled(viewGroup, enabled);
|
public static void | setElevation(android.view.View view, float elevation)Sets the base elevation of this view, in pixels.
IMPL.setElevation(view, elevation);
|
public static void | setFitsSystemWindows(android.view.View view, boolean fitSystemWindows)Sets whether or not this view should account for system screen decorations
such as the status bar and inset its content; that is, controlling whether
the default implementation of {@link View#fitSystemWindows(Rect)} will be
executed. See that method for more details.
IMPL.setFitsSystemWindows(view, fitSystemWindows);
|
public static void | setHasTransientState(android.view.View view, boolean hasTransientState)Set whether this view is currently tracking transient state that the
framework should attempt to preserve when possible.
IMPL.setHasTransientState(view, hasTransientState);
|
public static void | setImportantForAccessibility(android.view.View view, int mode)Sets how to determine whether this view is important for accessibility
which is if it fires accessibility events and if it is reported to
accessibility services that query the screen.
Note: If the current paltform version does not support the
{@link #IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS} mode, then
{@link #IMPORTANT_FOR_ACCESSIBILITY_NO} will be used as it is the
closest terms of semantics.
IMPL.setImportantForAccessibility(view, mode);
|
public static void | setLabelFor(android.view.View view, int labeledId)Sets the id of a view for which a given view serves as a label for
accessibility purposes.
IMPL.setLabelFor(view, labeledId);
|
public static void | setLayerPaint(android.view.View view, android.graphics.Paint paint)Updates the {@link Paint} object used with the current layer (used only if the current
layer type is not set to {@link #LAYER_TYPE_NONE}). Changed properties of the Paint
provided to {@link #setLayerType(android.view.View, int, android.graphics.Paint)}
will be used the next time the View is redrawn, but
{@link #setLayerPaint(android.view.View, android.graphics.Paint)}
must be called to ensure that the view gets redrawn immediately.
A layer is associated with an optional {@link android.graphics.Paint}
instance that controls how the layer is composed on screen. The following
properties of the paint are taken into account when composing the layer:
- {@link android.graphics.Paint#getAlpha() Translucency (alpha)}
- {@link android.graphics.Paint#getXfermode() Blending mode}
- {@link android.graphics.Paint#getColorFilter() Color filter}
If this view has an alpha value set to < 1.0 by calling
View#setAlpha(float), the alpha value of the layer's paint is replaced by
this view's alpha value. Calling View#setAlpha(float) is therefore
equivalent to setting a hardware layer on this view and providing a paint with
the desired alpha value.
IMPL.setLayerPaint(view, paint);
|
public static void | setLayerType(android.view.View view, int layerType, android.graphics.Paint paint)Specifies the type of layer backing this view. The layer can be
{@link #LAYER_TYPE_NONE disabled}, {@link #LAYER_TYPE_SOFTWARE software} or
{@link #LAYER_TYPE_HARDWARE hardware}.
A layer is associated with an optional {@link android.graphics.Paint}
instance that controls how the layer is composed on screen. The following
properties of the paint are taken into account when composing the layer:
- {@link android.graphics.Paint#getAlpha() Translucency (alpha)}
- {@link android.graphics.Paint#getXfermode() Blending mode}
- {@link android.graphics.Paint#getColorFilter() Color filter}
If this view has an alpha value set to < 1.0 by calling
setAlpha(float), the alpha value of the layer's paint is replaced by
this view's alpha value. Calling setAlpha(float) is therefore
equivalent to setting a hardware layer on this view and providing a paint with
the desired alpha value.
Refer to the documentation of {@link #LAYER_TYPE_NONE disabled},
{@link #LAYER_TYPE_SOFTWARE software} and {@link #LAYER_TYPE_HARDWARE hardware}
for more information on when and how to use layers.
IMPL.setLayerType(view, layerType, paint);
|
public static void | setLayoutDirection(android.view.View view, int layoutDirection)Set the layout direction for this view. This will propagate a reset of layout direction
resolution to the view's children and resolve layout direction for this view.
IMPL.setLayoutDirection(view, layoutDirection);
|
public static void | setOnApplyWindowInsetsListener(android.view.View v, OnApplyWindowInsetsListener listener)Set an {@link OnApplyWindowInsetsListener} to take over the policy for applying
window insets to this view. This will only take effect on devices with API 21 or above.
IMPL.setOnApplyWindowInsetsListener(v, listener);
|
public static void | setOverScrollMode(android.view.View v, int overScrollMode)Set the over-scroll mode for this view. Valid over-scroll modes are
{@link #OVER_SCROLL_ALWAYS} (default), {@link #OVER_SCROLL_IF_CONTENT_SCROLLS}
(allow over-scrolling only if the view content is larger than the container),
or {@link #OVER_SCROLL_NEVER}.
Setting the over-scroll mode of a view will have an effect only if the
view is capable of scrolling.
IMPL.setOverScrollMode(v, overScrollMode);
|
public static void | setPaddingRelative(android.view.View view, int start, int top, int end, int bottom)Sets the relative padding. The view may add on the space required to display
the scrollbars, depending on the style and visibility of the scrollbars.
So the values returned from {@link #getPaddingStart}, {@link View#getPaddingTop},
{@link #getPaddingEnd} and {@link View#getPaddingBottom} may be different
from the values set in this call.
IMPL.setPaddingRelative(view, start, top, end, bottom);
|
public static void | setPivotX(android.view.View view, float value)Sets the x location of the point around which the view is
{@link #setRotation(View, float) rotated} and {@link #setScaleX(View, float) scaled}.
By default, the pivot point is centered on the object.
Setting this property disables this behavior and causes the view to use only the
explicitly set pivotX and pivotY values.
Prior to API 11 this will have no effect.
IMPL.setPivotX(view, value);
|
public static void | setPivotY(android.view.View view, float value)Sets the y location of the point around which the view is
{@link #setRotation(View, float) rotated} and {@link #setScaleY(View, float) scaled}.
By default, the pivot point is centered on the object.
Setting this property disables this behavior and causes the view to use only the
explicitly set pivotX and pivotY values.
Prior to API 11 this will have no effect.
IMPL.setPivotX(view, value);
|
public static void | setRotation(android.view.View view, float value)Sets the degrees that the view is rotated around the pivot point. Increasing values
result in clockwise rotation.
Prior to API 11 this will have no effect.
IMPL.setRotation(view, value);
|
public static void | setRotationX(android.view.View view, float value)Sets the degrees that the view is rotated around the horizontal axis through the pivot point.
Increasing values result in clockwise rotation from the viewpoint of looking down the
x axis.
Prior to API 11 this will have no effect.
IMPL.setRotationX(view, value);
|
public static void | setRotationY(android.view.View view, float value)Sets the degrees that the view is rotated around the vertical axis through the pivot point.
Increasing values result in counter-clockwise rotation from the viewpoint of looking
down the y axis.
Prior to API 11 this will have no effect.
IMPL.setRotationY(view, value);
|
public static void | setSaveFromParentEnabled(android.view.View v, boolean enabled)Controls whether the entire hierarchy under this view will save its
state when a state saving traversal occurs from its parent.
IMPL.setSaveFromParentEnabled(v, enabled);
|
public static void | setScaleX(android.view.View view, float value)Sets the amount that the view is scaled in x around the pivot point, as a proportion of
the view's unscaled width. A value of 1 means that no scaling is applied.
Prior to API 11 this will have no effect.
IMPL.setScaleX(view, value);
|
public static void | setScaleY(android.view.View view, float value)Sets the amount that the view is scaled in Y around the pivot point, as a proportion of
the view's unscaled width. A value of 1 means that no scaling is applied.
Prior to API 11 this will have no effect.
IMPL.setScaleY(view, value);
|
public static void | setTransitionName(android.view.View view, java.lang.String transitionName)Sets the name of the View to be used to identify Views in Transitions.
Names should be unique in the View hierarchy.
IMPL.setTransitionName(view, transitionName);
|
public static void | setTranslationX(android.view.View view, float value)Sets the horizontal location of this view relative to its left position.
This effectively positions the object post-layout, in addition to wherever the object's
layout placed it.
Prior to API 11 this will have no effect.
IMPL.setTranslationX(view, value);
|
public static void | setTranslationY(android.view.View view, float value)Sets the vertical location of this view relative to its top position.
This effectively positions the object post-layout, in addition to wherever the object's
layout placed it.
Prior to API 11 this will have no effect.
IMPL.setTranslationY(view, value);
|
public static void | setTranslationZ(android.view.View view, float translationZ)Sets the depth location of this view relative to its {@link #getElevation(View) elevation}.
IMPL.setTranslationZ(view, translationZ);
|
public static void | setX(android.view.View view, float value)Sets the visual x position of this view, in pixels. This is equivalent to setting the
{@link #setTranslationX(View, float) translationX} property to be the difference between
the x value passed in and the current left property of the view as determined
by the layout bounds.
Prior to API 11 this will have no effect.
IMPL.setX(view, value);
|
public static void | setY(android.view.View view, float value)Sets the visual y position of this view, in pixels. This is equivalent to setting the
{@link #setTranslationY(View, float) translationY} property to be the difference between
the y value passed in and the current top property of the view as determined by the
layout bounds.
Prior to API 11 this will have no effect.
IMPL.setY(view, value);
|