public static void hideLine(Context context,View top,View bottom) {
Animation topTranslateAnimation=new TranslateAnimation(0, 0, 0, -DensityUtil.dip2px(context,56f));
topTranslateAnimation.setDuration(300);
topTranslateAnimation.setInterpolator(context, android.R.anim.linear_interpolator);
topTranslateAnimation.setFillAfter(true);
top.startAnimation(topTranslateAnimation);
Animation bottomTranslateAnimation=new TranslateAnimation(0, 0, 0, DensityUtil.dip2px(context,56f));
bottomTranslateAnimation.setDuration(300);
bottomTranslateAnimation.setInterpolator(context, android.R.anim.linear_interpolator);
bottomTranslateAnimation.setFillAfter(true);
bottom.startAnimation(bottomTranslateAnimation);
top.setVisibility(View.GONE);
bottom.setVisibility(View.GONE);
}
AnimationUtil.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:PhotoPickApp
作者:
评论列表
文章目录