I created the button in java code and i cant change the size of the button.I used
btn = new Button(Activity.this);
btn.setText("\t\t" + lbl + "\t\t\t ");
btn.setBackgroundResource(R.drawable.blue_button);
btn.setwidth(100);
but no use.Any idea? Thanks
1 Answer