ViewAnimationUtils.CreateCircularReveal メソッド

定義

クリッピング円をアニメーション化できるアニメーターを返します。

[Android.Runtime.Register("createCircularReveal", "(Landroid/view/View;IIFF)Landroid/animation/Animator;", "")]
public static Android.Animation.Animator? CreateCircularReveal(Android.Views.View? view, int centerX, int centerY, float startRadius, float endRadius);
[<Android.Runtime.Register("createCircularReveal", "(Landroid/view/View;IIFF)Landroid/animation/Animator;", "")>]
static member CreateCircularReveal : Android.Views.View * int * int * single * single -> Android.Animation.Animator

パラメーター

view
View

ビューはアニメーション化する円にクリップされます。

centerX
Int32

アニメーション化する円の中心の x 座標( viewを基準に)。

centerY
Int32

アニメーション化する円の中心の y 座標 ( viewを基準に)。

startRadius
Single

アニメーション化する円の開始半径。

endRadius
Single

アニメーション化する円の終了半径。

返品

循環表示の作成操作の結果。

属性

注釈

クリッピング円をアニメーション化できるアニメーターを返します。

ビューによって投影された影は、このアニメーターの円形クリップを尊重します。

ビューに適用できる四角形以外のクリップは、いつでも 1 つだけです。 循環表示アニメーションによってクリップされたビューは、 View#setClipToOutline(boolean) View Outline clippingよりも優先されます。

ここで返されるアニメーションはワンショット アニメーションであることに注意してください。 これは再利用できず、一度起動した後は一時停止または再開できません。 また、UI スレッドから自動的に実行される非同期アニメーションでもあります。 その結果、アニメーションが終了した後に AnimatorListener#onAnimationEnd(Animator) が発生しますが、スレッドの応答性によっては遅延する可能性があります。

表示アニメーターに開始遅延が設定されている場合、開始遅延が経過するまで、開始半径は表示円に適用されないことに注意してください。 開始遅延中に表示円に開始半径を設定する場合は、同じ開始半径と終了半径を持つアニメーターを追加する回避策があります。 例えば次が挙げられます。

<code>
            public static Animator createRevealWithDelay(View view, int centerX, int centerY, float startRadius, float endRadius) {
                Animator delayAnimator = ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, startRadius);
                delayAnimator.setDuration(delayTimeMS);
                Animator revealAnimator = ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
                AnimatorSet set = new AnimatorSet();
                set.playSequentially(delayAnimator, revealAnimator);
                return set;
            }
</code>

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象