活动开始时,软键盘不显示 [英] Soft keyboard does not show when Activity starts
问题描述
我已经加入安卓windowSoftInputMode =stateAlwaysVisible
来我的活动中的 AndroidManifest.xml中这是我的布局:
I have added android:windowSoftInputMode="stateAlwaysVisible"
to my Activity in AndroidManifest.xml and here's my layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText android:id="@+id/EditText01" android:layout_width="wrap_content"
android:layout_height="wrap_content"></EditText>
<EditText android:id="@+id/EditText02" android:layout_width="wrap_content"
android:layout_height="wrap_content"></EditText>
<Button android:id="@+id/Button01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Send"></Button>
</LinearLayout>
在活动开始时,EditText上集中,但不显示软键盘。如果我点击的EditText,然后我看到了软键盘。我是否需要设置aditional的参数显示软键盘我的活动开始时?
When the Activity starts, the EditText is focused, but soft keyboard isn't displayed. If I click on the EditText, then I see the soft keyboard. Do I need to set aditional parameters to display soft keyboard when my Activity starts?
感谢
推荐答案
我相信它的种类窃听,阅读:<一href="http://stackoverflow.com/questions/1509719/android-how-to-make-the-keypad-always-visible">http://stackoverflow.com/questions/1509719/android-how-to-make-the-keypad-always-visible
I believe its kind of bugged , read this : http://stackoverflow.com/questions/1509719/android-how-to-make-the-keypad-always-visible
这篇关于活动开始时,软键盘不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!