LayoutParams写了没用,用了也没啥效果,多余的吧
ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); container.addView(view, lp); // 这里鸿神写错了,要加lp,不过加了也没啥用
ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); container.addView(view, lp); // 这里鸿神写错了,要加lp,不过加了也没啥用
2019-11-27
举报