Android:topbar + ViewFlipper + scrollview + Bottom Bar

问题描述

|| 我正在创建这些项目,如下所示:
<RelativeLayout android:id=\"@+id/relativeLayout1\"
    android:layout_width=\"fill_parent\" android:layout_height=\"fill_parent\"
    android:background=\"@drawable/bg1\" xmlns:android=\"http://schemas.android.com/apk/res/android\">

<RelativeLayout android:id=\"@+id/relativeLayout2\">top bar</RelativeLayout>
<ViewFlipper android:id=\"@+id/details\"
        android:layout_below=\"@+id/relativeLayout2\" android:layout_width=\"fill_parent\"
        android:layout_height=\"fill_parent\">

    <RelativeLayout android:layout_width=\"fill_parent\"
            android:layout_height=\"fill_parent\" android:id=\"@+id/relativeLayout3\">

            <ScrollView android:layout_height=\"wrap_content\"
                android:fadingEdge=\"none\" android:layout_width=\"fill_parent\">
edittext and textview

    </ScrollView>

        </RelativeLayout>
</ViewFlipper>
    <RelativeLayout android:layout_height=\"wrap_content\"
        android:id=\"@+id/relativeLayout5\" android:layout_width=\"fill_parent\"
        android:layout_gravity=\"bottom\"
        android:layout_alignParentBottom=\"true\" android:background=\"@drawable/bar\">
</RelativeLayout>
当我单击edittext时,将打开软输入模式,但底部显示键盘的上方。 请帮助我。为什么底部显示键盘上方 谢谢     

解决方法

        也许尝试在相关的活动标签中将windowSoftInputMode设置为
adjustPan
?例如。
<activity android:windowSoftInputMode=\"adjustPan\">
那应该防止布局被软件键盘调整大小。     

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...