Initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.ubt.jimu.utils.smartScaleTool;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public enum MeasureTools$Orientation {
|
||||
VERTICAL_RATIO,
|
||||
HORIZONTAL_RATIO
|
||||
}
|
15
sources/com/ubt/jimu/utils/smartScaleTool/ScreenUtils.java
Normal file
15
sources/com/ubt/jimu/utils/smartScaleTool/ScreenUtils.java
Normal file
@@ -0,0 +1,15 @@
|
||||
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};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user