How to increase width of textfield according to typed text?
|Added at||2017-01-03 06:01|
I need to increase a text field's width according to its content. When the user inputs text, then the textfield size should increase automatically. I have one close (X) button next to this text field.
I have constrained the text field and button so that the text field is centered on screen, and the button is adjacent to it. (Text field should be editable, button should be clickable)
Text field size is this:
When I enter text in it, the size should automatically increase:
How can I achieve this?