ddd

// for (int i = 0; i < 100; i++) {//名词

// //relative

// RelativeLayout rLayout=new RelativeLayout(this);

//

// RelativeLayout.LayoutParams tlp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// tlp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

// tlp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// //添加TextView

// TextView tv=new TextView(this);

// tv.setId(i+1);

// tv.setText("n:");

// tv.setTextSize(24);

// tv.setWidth(40);

// tv.setHeight(40);

// tv.setTextColor(0xff000000);

// tv.setLayoutParams(tlp);

// rLayout.addView(tv, tlp);

// //添加LinearLayout

// RelativeLayout.LayoutParams llp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// llp.addRule(RelativeLayout.CENTER_VERTICAL);

// llp.addRule(RelativeLayout.RIGHT_OF,i+1);

//

// LinearLayout layout1=new LinearLayout(this);

// layout1.setOrientation(LinearLayout.HORIZONTAL);

//

// Button btn1=new Button(this);

// btn1.setWidth(40);

// btn1.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn1.setText("aiiii");

// btn1.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn1);

//

// Button btn2=new Button(this);

// btn2.setWidth(40);

// btn2.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn2.setText("aiiii");

// btn2.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn2);

//

// Button btn3=new Button(this);

// btn3.setWidth(40);

// btn3.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn3.setText("aiiii");

// btn3.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn3);

//

// rLayout.addView(layout1, llp);

//

//

// //ImageView

// ImageView imgV=new ImageView(this);

// imgV.setBackgroundColor(0xff995533);

// imgV.setMinimumHeight(40);

// imgV.setMinimumWidth(40);

// RelativeLayout.LayoutParams imglp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// imglp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

// imglp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// imglp.setMargins(0, 0, 10, 0);

// rLayout.addView(imgV, imglp);

//

//

// linearContainer.addView(rLayout);

// }

//

//

// TextView tt=new TextView(this);

// tt.setBackgroundColor(0x00000000);

// tt.setHeight(40);

// linearContainer.addView(tt, Lp_fw);

//

//

// for (int i = 0; i < 100; i++) {//动词

// //relative

// RelativeLayout rLayout=new RelativeLayout(this);

//

// RelativeLayout.LayoutParams tlp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// tlp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

// tlp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// //添加TextView

// TextView tv=new TextView(this);

// tv.setId(i+1);

// tv.setText("n:");

// tv.setTextSize(24);

// tv.setWidth(40);

// tv.setHeight(40);

// tv.setTextColor(0xff000000);

// tv.setLayoutParams(tlp);

// rLayout.addView(tv, tlp);

// //添加LinearLayout

// RelativeLayout.LayoutParams llp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// llp.addRule(RelativeLayout.CENTER_VERTICAL);

// llp.addRule(RelativeLayout.RIGHT_OF,i+1);

//

// LinearLayout layout1=new LinearLayout(this);

// layout1.setOrientation(LinearLayout.HORIZONTAL);

//

// Button btn1=new Button(this);

// btn1.setWidth(40);

// btn1.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn1.setText("aiiii");

// btn1.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn1);

//

// Button btn2=new Button(this);

// btn2.setWidth(40);

// btn2.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn2.setText("aiiii");

// btn2.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn2);

//

// Button btn3=new Button(this);

// btn3.setWidth(40);

// btn3.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn3.setText("aiiii");

// btn3.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn3);

//

// rLayout.addView(layout1, llp);

//

//

// //ImageView

// ImageView imgV=new ImageView(this);

// imgV.setBackgroundColor(0xff995533);

// imgV.setMinimumHeight(40);

// imgV.setMinimumWidth(40);

// RelativeLayout.LayoutParams imglp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// imglp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

// imglp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// imglp.setMargins(0, 0, 10, 0);

// rLayout.addView(imgV, imglp);

//

//

// linearContainer.addView(rLayout);

// }

//

// TextView tt2=new TextView(this);

// tt2.setBackgroundColor(0x00000000);

// tt2.setHeight(40);

// linearContainer.addView(tt2, Lp_fw);

//

// for (int i = 0; i < 100; i++) {//副词

// //relative

// RelativeLayout rLayout=new RelativeLayout(this);

//

// RelativeLayout.LayoutParams tlp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// tlp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

// tlp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// //添加TextView

// TextView tv=new TextView(this);

// tv.setId(i+1);

// tv.setText("n:");

// tv.setTextSize(24);

// tv.setWidth(40);

// tv.setHeight(40);

// tv.setTextColor(0xff000000);

// tv.setLayoutParams(tlp);

// rLayout.addView(tv, tlp);

// //添加LinearLayout

// RelativeLayout.LayoutParams llp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// llp.addRule(RelativeLayout.CENTER_VERTICAL);

// llp.addRule(RelativeLayout.RIGHT_OF,i+1);

//

// LinearLayout layout1=new LinearLayout(this);

// layout1.setOrientation(LinearLayout.HORIZONTAL);

//

// Button btn1=new Button(this);

// btn1.setWidth(40);

// btn1.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn1.setText("aiiii");

// btn1.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn1);

//

// Button btn2=new Button(this);

// btn2.setWidth(40);

// btn2.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn2.setText("aiiii");

// btn2.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn2);

//

// Button btn3=new Button(this);

// btn3.setWidth(40);

// btn3.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn3.setText("aiiii");

// btn3.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn3);

//

// rLayout.addView(layout1, llp);

//

//

// //ImageView

// ImageView imgV=new ImageView(this);

// imgV.setBackgroundColor(0xff995533);

// imgV.setMinimumHeight(40);

// imgV.setMinimumWidth(40);

// RelativeLayout.LayoutParams imglp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// imglp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

// imglp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// imglp.setMargins(0, 0, 10, 0);

// rLayout.addView(imgV, imglp);

//

//

// linearContainer.addView(rLayout);

// }

//

// TextView tt3=new TextView(this);

// tt3.setBackgroundColor(0x00000000);

// tt3.setHeight(40);

// linearContainer.addView(tt3, Lp_fw);

//

// for (int i = 0; i < 100; i++) {//形容词

// //relative

// RelativeLayout rLayout=new RelativeLayout(this);

//

// RelativeLayout.LayoutParams tlp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// tlp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

// tlp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// //添加TextView

// TextView tv=new TextView(this);

// tv.setId(i+1);

// tv.setText("n:");

// tv.setTextSize(24);

// tv.setWidth(40);

// tv.setHeight(40);

// tv.setTextColor(0xff000000);

// tv.setLayoutParams(tlp);

// rLayout.addView(tv, tlp);

// //添加LinearLayout

// RelativeLayout.LayoutParams llp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// llp.addRule(RelativeLayout.CENTER_VERTICAL);

// llp.addRule(RelativeLayout.RIGHT_OF,i+1);

//

// LinearLayout layout1=new LinearLayout(this);

// layout1.setOrientation(LinearLayout.HORIZONTAL);

//

// Button btn1=new Button(this);

// btn1.setWidth(40);

// btn1.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn1.setText("aiiii");

// btn1.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn1);

//

// Button btn2=new Button(this);

// btn2.setWidth(40);

// btn2.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn2.setText("aiiii");

// btn2.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn2);

//

// Button btn3=new Button(this);

// btn3.setWidth(40);

// btn3.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn3.setText("aiiii");

// btn3.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn3);

//

// rLayout.addView(layout1, llp);

//

//

// //ImageView

// ImageView imgV=new ImageView(this);

// imgV.setBackgroundColor(0xff995533);

// imgV.setMinimumHeight(40);

// imgV.setMinimumWidth(40);

// RelativeLayout.LayoutParams imglp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// imglp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

// imglp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// imglp.setMargins(0, 0, 10, 0);

// rLayout.addView(imgV, imglp);

//

//

// linearContainer.addView(rLayout);

// }

//

// TextView tt4=new TextView(this);

// tt4.setBackgroundColor(0x00000000);

// tt4.setHeight(40);

// linearContainer.addView(tt4, Lp_fw);

//

// for (int i = 0; i < 100; i++) {//介词

// //relative

// RelativeLayout rLayout=new RelativeLayout(this);

//

// RelativeLayout.LayoutParams tlp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// tlp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);

// tlp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// //添加TextView

// TextView tv=new TextView(this);

// tv.setId(i+1);

// tv.setText("n:");

// tv.setTextSize(24);

// tv.setWidth(40);

// tv.setHeight(40);

// tv.setTextColor(0xff000000);

// tv.setLayoutParams(tlp);

// rLayout.addView(tv, tlp);

// //添加LinearLayout

// RelativeLayout.LayoutParams llp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// llp.addRule(RelativeLayout.CENTER_VERTICAL);

// llp.addRule(RelativeLayout.RIGHT_OF,i+1);

//

// LinearLayout layout1=new LinearLayout(this);

// layout1.setOrientation(LinearLayout.HORIZONTAL);

//

// Button btn1=new Button(this);

// btn1.setWidth(40);

// btn1.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn1.setText("aiiii");

// btn1.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn1);

//

// Button btn2=new Button(this);

// btn2.setWidth(40);

// btn2.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn2.setText("aiiii");

// btn2.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn2);

//

// Button btn3=new Button(this);

// btn3.setWidth(40);

// btn3.setHeight(40);

// //btn1.setLayoutParams(lp);

// btn3.setText("aiiii");

// btn3.setBackgroundResource(R.drawable.case1);

// layout1.addView(btn3);

//

// rLayout.addView(layout1, llp);

//

//

// //ImageView

// ImageView imgV=new ImageView(this);

// imgV.setBackgroundColor(0xff995533);

// imgV.setMinimumHeight(40);

// imgV.setMinimumWidth(40);

// RelativeLayout.LayoutParams imglp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);

// imglp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

// imglp.addRule(RelativeLayout.CENTER_VERTICAL, RelativeLayout.TRUE);

// imglp.setMargins(0, 0, 10, 0);

// rLayout.addView(imgV, imglp);

//

//

// linearContainer.addView(rLayout);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值