繁体   English   中英

Android:顶栏 + ViewFlipper +scrollview + 底栏

[英]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>

当我单击编辑文本时,软输入模式打开,但底部栏显示键盘上方。

请帮助我。 为什么底部栏显示在键盘上方

谢谢

也许尝试在相关的 Activity 标记中将adjustPan 例如

<activity android:windowSoftInputMode="adjustPan">

这应该可以防止布局被软件键盘调整大小。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM