@@ -624,14 +624,20 @@ public ViewPropertyAnimator alphaBy(float value) {
624624 /**
625625 * The View associated with this ViewPropertyAnimator will have its
626626 * {@link View#setLayerType(int, android.graphics.Paint) layer type} set to
627- * {@link View#LAYER_TYPE_HARDWARE} for the duration of the next animation. This state
628- * is not persistent, either on the View or on this ViewPropertyAnimator: the layer type
629- * of the View will be restored when the animation ends to what it was when this method was
630- * called, and this setting on ViewPropertyAnimator is only valid for the next animation.
631- * Note that calling this method and then independently setting the layer type of the View
632- * (by a direct call to {@link View#setLayerType(int, android.graphics.Paint)}) will result
633- * in some inconsistency, including having the layer type restored to its pre-withLayer()
634- * value when the animation ends.
627+ * {@link View#LAYER_TYPE_HARDWARE} for the duration of the next animation.
628+ * As stated in the documentation for {@link View#LAYER_TYPE_HARDWARE},
629+ * the actual type of layer used internally depends on the runtime situation of the
630+ * view. If the activity and this view are hardware-accelerated, then the layer will be
631+ * accelerated as well. If the activity or the view is not accelerated, then the layer will
632+ * effectively be the same as {@link View#LAYER_TYPE_SOFTWARE}.
633+ *
634+ * <p>This state is not persistent, either on the View or on this ViewPropertyAnimator: the
635+ * layer type of the View will be restored when the animation ends to what it was when this
636+ * method was called, and this setting on ViewPropertyAnimator is only valid for the next
637+ * animation. Note that calling this method and then independently setting the layer type of
638+ * the View (by a direct call to {@link View#setLayerType(int, android.graphics.Paint)}) will
639+ * result in some inconsistency, including having the layer type restored to its pre-withLayer()
640+ * value when the animation ends.</p>
635641 *
636642 * @see View#setLayerType(int, android.graphics.Paint)
637643 * @return This object, allowing calls to methods in this class to be chained.
0 commit comments