你可以通过在你的 ListView添加 android:descendantFocusability="beforeDescendants" 和 android:windowSoftInputMode="adjustPan" 示例如下:
<ExpandableListView android:id="@+id/productList" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignLeft="@+id/search" android:layout_below="@+id/search" android:padding="5dp" android:descendantFocusability="beforeDescendants"/> <activity android:name=".myActivity" android:label="@string/app_name" android:screenOrientation="sensorPortrait" android:windowSoftInputMode="adjustPan"/>
如果上面的办法不行,你可以设置EditText的 onFocusChange监听, 当视图再次渲染,在你的getView 或者getChildView 你可以设置EditText的焦点。