Button button8 = new Button(this);
button8.setId(8);
button8.setText(“地震”);
button8.setCompoundDrawablesWithIntrinsicBounds(0,R.drawable.earth,0, 0);
RelativeLayout.LayoutParams param8 = createParam(85, 85);
button8.setBackgroundColor(Color.parseColor(Par8));
button8.setTextColor(Color.parseColor(TPar8));
param8.addRule(RelativeLayout.RIGHT_OF,7);
param8.addRule(RelativeLayout.ABOVE, 1);
relativeLayout.addView(button8, param8);