2

I used edittext in listview item.But it not working properly even though setting activity android:windowSoftInputMode="adjustPan".Is there any way to solve this problem. Thank you in advance.

4

2 回答 2

3

将此添加到您的视图中。 android:descendantFocusability="beforeDescendants"

于 2014-11-11T12:19:55.603 回答
0

如果布局显示时没有 EditText,它不会加载键盘,请将其粘贴到布局的开头。

    <EditText
        android:visibility="gone"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    ... 
    <ListView ...
于 2019-12-02T21:38:48.297 回答