jimu-decompiled/sources/com/ubt/jimu/utils/smartScaleTool/ScreenUtils.java
2025-05-13 19:24:51 +02:00

16 lines
543 B
Java

package com.ubt.jimu.utils.smartScaleTool;
import androidx.recyclerview.widget.RecyclerView;
import com.ubt.jimu.utils.LogUtils;
/* loaded from: classes2.dex */
public class ScreenUtils {
public static int[] a(float f, RecyclerView recyclerView, float f2, int i) {
float f3 = i;
int measuredWidth = (int) ((recyclerView.getMeasuredWidth() - (f2 * f3)) / f3);
int i2 = (int) (measuredWidth * f);
LogUtils.c("width==" + measuredWidth + "height==" + i2);
return new int[]{measuredWidth, i2};
}
}