如何避免在relativePoutBoutom = true ...的relativelayout中跳转布局?

时间:2011-10-31 10:10:07

标签: android android-linearlayout relativelayout android-edittext

我有一个相对布局,它有两个项目,一个列表另一个是自定义布局。

在列表视图中,编辑文本就在那里。当用户点击编辑文本弹出软键盘时。

自定义布局将位于键盘顶部,

这使我输入值的空间更小。

如何避免这种行为,是否有线性布局的解决方案....?

这是代码。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:background="@drawable/tab_top_bg" android:orientation="vertical">

    <include android:id="@+id/bottomNavigation2" layout="@layout/bottom_navign_other"
        android:layout_width="fill_parent" android:layout_height="65dp"
        android:layout_gravity="center_vertical"
        android:layout_alignParentBottom="true" android:layout_marginLeft="4dp"
        android:layout_marginRight="4dp" android:layout_marginTop="4dp"
        android:layout_marginBottom="4dp" />


    <ExpandableListView android:layout_width="fill_parent"
        android:background="@drawable/tab_top_bg" android:layout_height="fill_parent"
        android:id="@+id/list" android:cacheColorHint="#00000000"
        android:focusableInTouchMode="true" android:listSelector="#00000000"
        android:layout_marginLeft="4dp" android:layout_marginRight="4dp"        
        android:layout_above="@id/bottomNavigation2">
    </ExpandableListView>

</RelativeLayout>

提前致谢...!

1 个答案:

答案 0 :(得分:1)