iphone-style text edit on android
<p>I'm trying to make iPhone-style EditText element on android.
The one that will have an additional clear button appear on the right after text input.</p>

<p>Adding a new button is not a problem, but I'm a bit stuck with another thing.</p>

<p>A button occupies some space on the right part of EditText, and now characters display beneath the button. How to change maximum shown length of input for EditText?<br>
I want EditText width to be N pixels, and editable area to be N-M pixels.</p>

<p>EditText.setWidth changes width for whole edit box.<br>
EditText.setEllipsize should be the proper solution, but docs are empty, and as I see it truncates text based on some String value.<br>
Applying a LengthFilter cut's the input length to number of characters.</p>

<p>Thanks in advance.</p>
