tags:

views:

408

answers:

1

I would like to have a custom ListView, where each row contains an EditText field, that may be edited by the user. But when I click on one of the EditTexts I loose the focus, and can't type text there (I suppose because the other raws are redrawed and get the focus). What can I do?

A: 

If the problem is related to software keyboard, try to set windowSoftInputMode to adjustPan in activity declaration in AndroidManifest.xml as follows:

  ...
    <activity 
        android:name=".activity.Activity"
        android:label="@string/activity"
        android:windowSoftInputMode="adjustPan" />
    ...

It should help. Check http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html for more info about it.

Ondra Zahradnik