[英]android gridview with edittext inside listview lose focus
我在每一行都有一个带有 gridview 的列表视图,gridview 有许多编辑文本项,当我想在其中一个编辑文本(gridview 项)中写入时,它将失去焦点并且活动跳转到顶部。
Try this,尝试这个,
in your manifest add this to your listView activity.在您的清单中,将此添加到您的 listView 活动中。
android:windowSoftInputMode="adjustPan"
and for the listview in layout add this.并为布局中的列表视图添加此内容。
android:descendantFocusability="afterDescendants"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.