app/src/main/java/me/zhanghai/android/douya/ui/NestedRatioHeightRecyclerView.java

(完整代码) 789B

/*
 * Copyright (c) 2016 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
 * All Rights Reserved.
 */

package me.zhanghai.android.douya.ui;

import android.content.Context;
import android.util.AttributeSet;

@SuppressWarnings("deprecation")
public class NestedRatioHeightRecyclerView extends RatioHeightRecyclerView {

    public NestedRatioHeightRecyclerView(Context context) {
        super(context);

        init();
    }

    public NestedRatioHeightRecyclerView(Context context, AttributeSet attrs) {
        super(context, attrs);

        init();
    }

    public NestedRatioHeightRecyclerView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);

        init();
    }

    private void init() {
        setFocusableInTouchMode(false);
    }
}

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

AI 解读

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

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