我都界面进行调整

This commit is contained in:
ningwenqiang
2024-11-02 12:08:44 +08:00
parent 4f916a4ad4
commit 4a2028db29
9 changed files with 46 additions and 61 deletions

View File

@@ -33,6 +33,7 @@ public class NineGridLayout extends FrameLayout {
private LayoutParams[] mLayoutParamsArray;
private OnClickListener mOnClickListener;
private List<?> mDataList;
private Boolean onIsFUll = false;
public NineGridLayout(Context context) {
@@ -57,8 +58,14 @@ public class NineGridLayout extends FrameLayout {
DisplayMetrics dm = context.getResources().getDisplayMetrics();
float scale = dm.density;
int width = dm.widthPixels - space;
mDividerWidth = dividerWidth;
if (onIsFUll){
}
mWidth1 = (int) (scale * 220 + 0.5f);
mWidth2 = (width - dividerWidth) / 2;
mWidth3 = (width - dividerWidth * 2) / 3;
mOnClickListener = new OnClickListener() {