本文整理了Java中android.view.ViewPropertyAnimator.start()
方法的一些代码示例,展示了ViewPropertyAnimator.start()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewPropertyAnimator.start()
方法的具体详情如下:
包路径:android.view.ViewPropertyAnimator
类名称:ViewPropertyAnimator
方法名:start
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void start() {
android.view.ViewPropertyAnimator n = mNative.get();
if (n != null) {
n.start();
}
}
代码示例来源:origin: scwang90/SmartRefreshLayout
private void addAnimate(SmartViewHolder holder, int postion) {
if (mOpenAnimationEnable && mLastPosition < postion) {
holder.itemView.setAlpha(0);
holder.itemView.animate().alpha(1).start();
mLastPosition = postion;
}
}
代码示例来源:origin: seven332/EhViewer
private void showProgress(boolean animation) {
if (null != mProgress && View.VISIBLE != mProgress.getVisibility()) {
if (animation) {
mProgress.setAlpha(0.0f);
mProgress.setVisibility(View.VISIBLE);
mProgress.animate().alpha(1.0f).setDuration(500).start();
} else {
mProgress.setAlpha(1.0f);
mProgress.setVisibility(View.VISIBLE);
}
}
}
代码示例来源:origin: xinghongfei/LookLook
private void viewEnterAnimationNest(View view, float offset, Interpolator interp) {
view.setTranslationY(-offset);
view.animate()
.translationY(0f)
.alpha(1f)
.setDuration(50L)
.setInterpolator(interp)
.setListener(null)
.start();
}
代码示例来源:origin: xinghongfei/LookLook
@Override
protected void onResume() {
super.onResume();
mRelativeLayout.animate()
.alpha(1f)
.setDuration(1000L)
.setInterpolator(new AccelerateInterpolator())
.start();
}
代码示例来源:origin: xinghongfei/LookLook
private void viewEnterAnimationNest(View view, float offset, Interpolator interp) {
view.setTranslationY(-offset);
view.setAlpha(0.3f);
view.animate()
.translationY(0f)
.alpha(1f)
.setDuration(500L)
.setInterpolator(interp)
.setListener(null)
.start();
}
代码示例来源:origin: jaydenxiao2016/AndroidFire
protected void hideOrShowToolbar() {
toolbar.animate()
.alpha(mIsToolBarHidden ? 1.0f : 0.0f)
.setInterpolator(new DecelerateInterpolator(2))
.start();
mIsToolBarHidden = !mIsToolBarHidden;
}
代码示例来源:origin: arimorty/floatingsearchview
private void animateItem(View view) {
view.setTranslationY(Util.getScreenHeight((Activity) view.getContext()));
view.animate()
.translationY(0)
.setInterpolator(new DecelerateInterpolator(3.f))
.setDuration(700)
.start();
}
}
代码示例来源:origin: CameraKit/blurkit-android
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
movement = movement > 0 ? -150 : 150;
blurLayout.animate().translationY(movement).setDuration(1500).setListener(this).start();
}
}).start();
代码示例来源:origin: frogermcs/InstaMaterial
private void animateUserProfileHeader() {
vUserProfileRoot.setTranslationY(-vUserProfileRoot.getHeight());
ivUserProfilePhoto.setTranslationY(-ivUserProfilePhoto.getHeight());
vUserDetails.setTranslationY(-vUserDetails.getHeight());
vUserStats.setAlpha(0);
vUserProfileRoot.animate().translationY(0).setDuration(300).setInterpolator(INTERPOLATOR);
ivUserProfilePhoto.animate().translationY(0).setDuration(300).setStartDelay(100).setInterpolator(INTERPOLATOR);
vUserDetails.animate().translationY(0).setDuration(300).setStartDelay(200).setInterpolator(INTERPOLATOR);
vUserStats.animate().alpha(1).setDuration(200).setStartDelay(400).setInterpolator(INTERPOLATOR).start();
}
}
代码示例来源:origin: frogermcs/InstaMaterial
private void animateContent() {
commentsAdapter.updateItems();
llAddComment.animate().translationY(0)
.setInterpolator(new DecelerateInterpolator())
.setDuration(200)
.start();
}
代码示例来源:origin: frogermcs/InstaMaterial
private void startIntroAnimation() {
vUpperPanel.animate().translationY(0).setDuration(400).setInterpolator(DECELERATE_INTERPOLATOR);
vLowerPanel.animate().translationY(0).setDuration(400).setInterpolator(DECELERATE_INTERPOLATOR).start();
}
代码示例来源:origin: seven332/EhViewer
private void hideActionFab() {
if (null != mFabLayout && STATE_NORMAL == mState && mShowActionFab) {
mShowActionFab = false;
View fab = mFabLayout.getPrimaryFab();
fab.animate().scaleX(0.0f).scaleY(0.0f).setListener(mActionFabAnimatorListener)
.setDuration(ANIMATE_TIME).setStartDelay(0L)
.setInterpolator(AnimationUtils.SLOW_FAST_INTERPOLATOR).start();
}
}
代码示例来源:origin: HotBitmapGG/bilibili-android-client
private void hideFAB() {
mFAB.animate().scaleX(0f).scaleY(0f)
.setInterpolator(new AccelerateInterpolator())
.start();
mFAB.setClickable(false);
}
代码示例来源:origin: seven332/EhViewer
private void showActionFab() {
if (null != mFabLayout && STATE_NORMAL == mState && !mShowActionFab) {
mShowActionFab = true;
View fab = mFabLayout.getPrimaryFab();
fab.setVisibility(View.VISIBLE);
fab.setRotation(-45.0f);
fab.animate().scaleX(1.0f).scaleY(1.0f).rotation(0.0f).setListener(null)
.setDuration(ANIMATE_TIME).setStartDelay(0L)
.setInterpolator(AnimationUtils.FAST_SLOW_INTERPOLATOR).start();
}
}
代码示例来源:origin: frogermcs/InstaMaterial
private void startContentAnimation() {
fabCreate.animate()
.translationY(0)
.setInterpolator(new OvershootInterpolator(1.f))
.setStartDelay(300)
.setDuration(ANIM_DURATION_FAB)
.start();
feedAdapter.updateItems(true);
}
代码示例来源:origin: frogermcs/InstaMaterial
@Override
public void onSuccess() {
ivPhoto.animate()
.scaleX(1.f).scaleY(1.f)
.setInterpolator(new OvershootInterpolator())
.setDuration(400)
.setStartDelay(200)
.start();
}
代码示例来源:origin: frogermcs/InstaMaterial
@Override
public void onBackPressed() {
ViewCompat.setElevation(getToolbar(), 0);
contentRoot.animate()
.translationY(Utils.getScreenHeight(this))
.setDuration(200)
.setListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
CommentsActivity.super.onBackPressed();
overridePendingTransition(0, 0);
}
})
.start();
}
代码示例来源:origin: HotBitmapGG/bilibili-android-client
private void showFAB() {
mFAB.animate().scaleX(1f).scaleY(1f)
.setInterpolator(new OvershootInterpolator())
.start();
mFAB.setClickable(true);
}
代码示例来源:origin: nickbutcher/plaid
private void showFab() {
fab.setAlpha(0f);
fab.setScaleX(0f);
fab.setScaleY(0f);
fab.setTranslationY(fab.getHeight() / 2);
fab.animate()
.alpha(1f)
.scaleX(1f)
.scaleY(1f)
.translationY(0f)
.setDuration(300L)
.setInterpolator(AnimUtils.getLinearOutSlowInInterpolator(this))
.start();
}
内容来源于网络,如有侵权,请联系作者删除!