package com.seewo.libvui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ScrollView;

/* JADX INFO: loaded from: classes.dex */
public class AutoFitScrollView extends ScrollView {
    public AutoFitScrollView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    @Override // android.widget.ScrollView, android.widget.FrameLayout, android.view.View
    protected void onMeasure(int i2, int i3) {
        int i4 = getResources().getDisplayMetrics().widthPixels;
        Math.round((i4 / 1920.0f) * 760.0f);
        super.onMeasure(i2, View.MeasureSpec.makeMeasureSpec(Math.round((r4.heightPixels / 1080.0f) * 620.0f), Integer.MIN_VALUE));
    }
}
