@Override
public void onExpansionToggled(boolean expanded) {
super.onExpansionToggled(expanded);
ObjectAnimator imageViewObjectAnimator;
if (expanded) { // rotate clockwise
imageViewObjectAnimator = ObjectAnimator.ofFloat(mArrowExpandImageView ,
View.ROTATION, ROTATED_POSITION,INITIAL_POSITION);
} else { // rotate counterclockwise
imageViewObjectAnimator = ObjectAnimator.ofFloat(mArrowExpandImageView ,
View.ROTATION,INITIAL_POSITION, ROTATED_POSITION);
}
imageViewObjectAnimator.setDuration(1000);
imageViewObjectAnimator.setInterpolator(new OvershootInterpolator());
imageViewObjectAnimator.start();
}
BookResultsHeaderViewHolder.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:IslamicLibraryAndroid
作者:
评论列表
文章目录