活动开始时,软键盘不显示键盘

由网友(一念白描烟,一言白素情)分享简介:我已经加入安卓windowSoftInputMode =stateAlwaysVisible来我的活动中的 AndroidManifest.xml中这是我的布局:I have added android:windowSoftInputMode="stateAlwaysVisible" to my Activity i...

我已经加入安卓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?

感谢

推荐答案

我相信它的种类窃听,阅读: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

阅读全文

相关推荐

最新文章