How to set a size for the EditText text box?

1

How to set a size for the textbox of EditText to be a square

    
asked by anonymous 11.04.2015 / 16:25

1 answer

1

Try this:

final LayoutParams layoutParams = new LayoutParams(50,50); // Largura, Altura
seuEditText.setLayoutParams(layoutParams);
    
11.04.2015 / 19:35