app/src/main/java/net/nashlegend/sourcewall/view/common/ScalingImage.java

(完整代码) 776B

package net.nashlegend.sourcewall.view.common;

import android.content.Context;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.MotionEvent;

import net.nashlegend.sourcewall.view.common.ScaledImage.SubsamplingScaleImageView;

/**
 * Created by NashLegend on 2015/10/20 0020.
 */
public class ScalingImage extends SubsamplingScaleImageView {
    public ScalingImage(Context context, AttributeSet attr) {
        super(context, attr);
    }

    public ScalingImage(Context context) {
        super(context);
    }

    @Override
    public boolean onTouchEvent(@NonNull MotionEvent event) {
        try {
            return super.onTouchEvent(event);
        } catch (Exception e) {
            return false;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。