在对应的ListView中添加android:descendantFocusability="beforeDescendants"在AndroidManifest.xml对应的Activity里加android:windowSoftInputMode="adjustPan"对于无法获得焦点也有作用