2012-06-11 78 views

回答

-1

你可以试试这个代码

Button b = new Button(this); 
      b.setText("Dynamic Button"); 
      b.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, 

LayoutParams.WRAP_CONTENT));

Folow本教程Customize Button