我的手机IME有问题,每当我点击编辑文本,所以KeyBoard提升,我的Activity中的每个ListView刷新自己,我可以防止应用程序视图被KeyBoar提升每次,使用直线层的高度,但他们仍然刷新自己,我的MainActivity上有这些参数:
android:windowSoftInputMode="adjustPan"
android:launchMode="singleTop"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:screenOrientation="sensor"
这是我的EditText:
<LinearLayout
android:id="@+id/bottom_write_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/message_bar" >
<EditText
android:id="@+id/TextFeild"
android:layout_width="0dip"
android:layout_height="45dp"
android:layout_margin="5sp"
android:layout_weight="0.13"
android:background="@drawable/message_field"
android:ems="10"
android:hint="Write here"
android:padding="5sp"
android:textColor="@color/textFieldColor" >
<requestFocus />
</EditText>
此刷新导致我的应用程序抛出StackOverFlowException:
09-20 08:15:23.519: E/AndroidRuntime(8223): FATAL EXCEPTION: main
09-20 08:15:23.519: E/AndroidRuntime(8223): java.lang.StackOverflowError
09-20 08:15:23.519: E/AndroidRuntime(8223): at
android.view.View.resolveTextDirection(View.java:13939)
09-20 08:15:23.519: E/AndroidRuntime(8223): at
android.view.View.getResolvedTextDirection(View.java:13923)
09-20 08:15:23.519: E/AndroidRuntime(8223): at
android.view.View.resolveTextDirection(View.java:13939)
如何通过KeyBoard提升来阻止MyListView刷新?!