CustomLoadDetailFooter.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:SmoothRefreshLayout 作者:
public CustomLoadDetailFooter(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
    super(context, attrs, defStyleAttr);
    mFlipAnimation = new RotateAnimation(0, -180, RotateAnimation.RELATIVE_TO_SELF,
            0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
    mFlipAnimation.setInterpolator(new LinearInterpolator());
    mFlipAnimation.setDuration(200);
    mFlipAnimation.setFillAfter(true);

    mReverseFlipAnimation = new RotateAnimation(-180, 0, RotateAnimation.RELATIVE_TO_SELF,
            0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
    mReverseFlipAnimation.setInterpolator(new LinearInterpolator());
    mReverseFlipAnimation.setDuration(200);
    mReverseFlipAnimation.setFillAfter(true);
    View header = LayoutInflater.from(getContext()).inflate(R.layout.layout_custom_load_detail_footer, this);
    mRotateView = (ImageView) header.findViewById(R.id.imageView_load_detail_footer_rotation);
    mTitleTextView = (TextView) header.findViewById(R.id.textView_load_detail_footer_title);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号