我想有一个定制的ListView,其中每一行包含一个EditText字段,可以由用户编辑。但是,当我点击我失去焦点的EditTexts之一,不能输入文字那里(我想,因为其他行的重画,并获得焦点)。 我该怎么办?
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 lose the focus, and can't type text there (I suppose because the other rows are redrawn and get the focus). What can I do?
如果问题涉及到的软件键盘,试图在AndroidManifest.xml中设置windowSoftInputMode为adjustPan在活动的声明如下:
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" />
...
这应该帮助。检查http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html关于它的更多信息。
It should help. Check http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html for more info about it.
上一篇:在Android的SDK 2.2安装在SD卡的应用程序应用程序、安装在、SDK、Android
下一篇:试图得出一个按钮:如何设置笔触颜色,以及如何&QUOT;调整&QUOT;渐变的底部不知道的高度?笔触、如何设置、按钮、高度