Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/214.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android virtualkeyborad隐藏编辑文本_Android_Android Edittext_Hidden_Virtual Keyboard - Fatal编程技术网

Android virtualkeyborad隐藏编辑文本

Android virtualkeyborad隐藏编辑文本,android,android-edittext,hidden,virtual-keyboard,Android,Android Edittext,Hidden,Virtual Keyboard,我有一个问题,我正在制作论坛,当我插入一篇文章时,如果我给EditText来写,我会得到虚拟键盘,我看不到你写的东西 有人知道如何提升虚拟键盘未隐藏的编辑文本吗 这是我的xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout1" andro

我有一个问题,我正在制作论坛,当我插入一篇文章时,如果我给EditText来写,我会得到虚拟键盘,我看不到你写的东西

有人知道如何提升虚拟键盘未隐藏的编辑文本吗

这是我的xml:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.aulasg.Foros" >


<ListView
    android:id="@+id/lvForoTemas"
    android:layout_width="match_parent"
    android:layout_height="392dp" >

</ListView>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

    <EditText
        android:id="@+id/comentarioMensaje"
        android:layout_width="281dp"
        android:layout_height="wrap_content"
        android:layout_weight="0.49"
        android:ems="10" />

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="0.49"
        android:onClick="insertarComentario"
        android:text="Button" />

  </LinearLayout>

</LinearLayout>


在您的AndroidManifest.xml中为您的活动添加以下代码android:WindowsOfInputMode=“adjustPan”

您应该在以下行中添加:android:WindowsOfInputMode=“adjustPan”

在清单文件中的活动中:

<activity
        android:name=".Name_of_your_ativity"     
        android:label="@string/title_activity"
        android:windowSoftInputMode="adjustPan" >
</activity>


尝试在AndroidManifest.xml上的活动标记中添加此属性android:WindowsOfInputMode=“adjustResize | StateAllwayshidden”,或尝试发布AndroidManifest.xml代码.Thx,但无效:有人能帮我吗?