how to set EditText box height and width programmatically in android
<p>hey i want to manage height and width of EditText Box  programmatically in android i tried <code>edittext.setWidth(32);</code> and <code>edittext.setEms(50);</code> both are not working please see my below coding coze i am using it to create dynamic EditText in android</p>

<pre><code>private EditText createEditText()
    {
        final LayoutParams lparams = new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);
        final EditText edittext = new EditText(this);
        edittext.setLayoutParams(lparams);
        edittext.setWidth(32);
        edittext.setEms(50);
        return edittext;
    }
</code></pre>
