我有一个ListView
三行。最后 2 行包含EditText
允许编辑的字段。我有下面这两个的xml:
<LinearLayout
android:id="@+id/id_message_subject_edit"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:orientation="vertical" >
<EditText
android:id="@+id/id_message_details_subject"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="left"
android:layout_margin="5dp"
android:gravity="left"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/BLACK"
android:textSize="15sp" />
</LinearLayout>
出于某种原因,当我单击 时EditText
,它只是失去了光标,但键盘仍然可见。我不确定,但它发生在两个盒子上。TouchListener
对于这件事,没有或任何其他听众。放入一个ListView
我需要注意的东西有什么特别之处吗?
编辑
当我将以下内容放入 manifest.xml 文件中时:
android:windowSoftInputMode="adjustPan"
我看到它可以工作......但是ListView
当文本低于键盘时不会滚动。有没有办法处理那个用例?