我都界面进行调整
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user