ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); container.addView(view, lp); // 这里鸿神写错了,要加lp,不过加了也没啥用
好像是这样的