android - EditText typing is slow

I was having a similar issue using EditText inside a ListView, that was fixed by changing the EditText width to 0dp using weighted widths to match/fill the parent.

I don't know for sure why this was occurring, however I believe it is because when the width of the EditText is set to wrap content it will adjust/redraw itself so that everything fits, and the ListView will also attempt to redraw itself so everything fits. So by making the EditText have a fixed width, this redraw is no longer required.


Edit AndroidManifest:

My old code

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" />

My new code

<uses-sdk android:minSdkVersion="8" />

I just removed the targetSdkVersion and the lag gone away...


I found that switching off the predictive text helped.

android:inputType="text|textNoSuggestions"