use of android.view.ViewPropertyAnimator in project Android-Material-Examples by saulmm.
the class GUIUtils method showViewByScale.
public static void showViewByScale(View view) {
ViewPropertyAnimator propertyAnimator = view.animate().setStartDelay(SCALE_FACTOR).scaleX(1).scaleY(1);
propertyAnimator.start();
}
use of android.view.ViewPropertyAnimator in project vlayout by alibaba.
the class FixLayoutHelper method addFixViewWithAnimator.
private void addFixViewWithAnimator(LayoutManagerHelper layoutManagerHelper, View fixView) {
if (mFixViewAnimatorHelper != null) {
ViewPropertyAnimator animator = mFixViewAnimatorHelper.onGetFixViewAppearAnimator(fixView);
if (animator != null) {
fixView.setVisibility(View.INVISIBLE);
layoutManagerHelper.addFixedView(fixView);
mFixViewAppearAnimatorListener.bindAction(layoutManagerHelper, fixView);
animator.setListener(mFixViewAppearAnimatorListener).start();
} else {
layoutManagerHelper.addFixedView(fixView);
}
} else {
layoutManagerHelper.addFixedView(fixView);
}
isRemoveFixViewImmediately = false;
}
use of android.view.ViewPropertyAnimator in project FlexibleAdapter by davideas.
the class EmptyViewHelper method showView.
private static void showView(View view) {
if (view != null) {
ViewPropertyAnimator animator = view.animate();
animator.cancel();
animator.alpha(1);
}
}
Aggregations