我有这个布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fastScrollEnabled="true"
android:focusableInTouchMode="true"
android:dividerHeight="1px"
android:visibility="gone"/>
</LinearLayout>
在listview的每一行中我都有一个EditText,当我点击它时,它会被聚焦,但它会立即失去焦点。
我在AndroidManifest中的活动中拥有属性android:windowSoftInputMode="stateVisible"
。我试图添加adjustPan
并且焦点正常工作但在这种情况下,键盘与列表重叠,我不希望这样。
我该怎么办?
感谢。