摘要: 1 RelativeLayout rl = new RelativeLayout(this); 2 3 Button btn1 = new Button(this); 4 btn1.setText("----------------------"); 5 btn1.setId(1); 6 7 RelativeLayout.LayoutParams lp1 = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT... 阅读全文