Is it possible to set Wrap Content Identifier int? Will the following code work?
EditText ET = new EditText(getActivity());
ET.setWidth(WRAP_CONTENT);
I suppose you should do something like that:
EditText editTextView = new EditText(getActivity());
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,
        LayoutParams.FILL_PARENT);
editTextView.setLayoutParams(params);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With