I try setWidth() and setheight() method but it not work
For me works perfect this:
ViewGroup.LayoutParams params = myButton.getLayoutParams(); //Button new width params.width = 400; myButton.setLayoutParams(params);