本文整理匯總了Java中io.plaidapp.util.AnimUtils.NoPauseAnimator方法的典型用法代碼示例。如果您正苦於以下問題:Java AnimUtils.NoPauseAnimator方法的具體用法?Java AnimUtils.NoPauseAnimator怎麽用?Java AnimUtils.NoPauseAnimator使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類io.plaidapp.util.AnimUtils
的用法示例。
在下文中一共展示了AnimUtils.NoPauseAnimator方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onAppear
import io.plaidapp.util.AnimUtils; //導入方法依賴的package包/類
@Override
public Animator onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues,
TransitionValues endValues) {
return new AnimUtils.NoPauseAnimator(ObjectAnimator.ofPropertyValuesHolder(
endValues.view,
PropertyValuesHolder.ofFloat(View.ALPHA, 0f, 1f),
PropertyValuesHolder.ofFloat(View.SCALE_X, 0f, 1f),
PropertyValuesHolder.ofFloat(View.SCALE_Y, 0f, 1f)));
}
示例2: onDisappear
import io.plaidapp.util.AnimUtils; //導入方法依賴的package包/類
@Override
public Animator onDisappear(ViewGroup sceneRoot, View view, TransitionValues startValues,
TransitionValues endValues) {
return new AnimUtils.NoPauseAnimator(ObjectAnimator.ofPropertyValuesHolder(
endValues.view,
PropertyValuesHolder.ofFloat(View.ALPHA, 1f, 0f),
PropertyValuesHolder.ofFloat(View.SCALE_X, 1f, 0f),
PropertyValuesHolder.ofFloat(View.SCALE_Y, 1f, 0f)));
}
示例3: onAppear
import io.plaidapp.util.AnimUtils; //導入方法依賴的package包/類
@Override
public Animator onAppear(ViewGroup sceneRoot, View view,
TransitionValues startValues,
TransitionValues endValues) {
if (view == null || view.getHeight() == 0 || view.getWidth() == 0) return null;
ensureCenterPoint(sceneRoot, view);
return new AnimUtils.NoPauseAnimator(ViewAnimationUtils.createCircularReveal(
view,
center.x,
center.y,
startRadius,
getFullyRevealedRadius(view)));
}
示例4: onDisappear
import io.plaidapp.util.AnimUtils; //導入方法依賴的package包/類
@Override
public Animator onDisappear(ViewGroup sceneRoot, View view,
TransitionValues startValues,
TransitionValues endValues) {
if (view == null || view.getHeight() == 0 || view.getWidth() == 0) return null;
ensureCenterPoint(sceneRoot, view);
return new AnimUtils.NoPauseAnimator(ViewAnimationUtils.createCircularReveal(
view,
center.x,
center.y,
getFullyRevealedRadius(view),
endRadius));
}