解决方案 »

  1.   

    你上面那个bar不是actionbar,是在布局中自己写的吧,然后隐藏title,这样的话就会被推上去,使用actionBar就可以
      

  2.   

    恩。顶部的那个bar是一个布局文件。actionbar是3.0才支持的,低版本可能不兼容(或者得引入低版本兼容actionBar的外部jar包)
    这个方法可以我可以去试试。
    请问还有其他方法可以实现吗?
      

  3.   

    <activity android:windowSoftInputMode="adjustResize"> 
    </activity>
      

  4.   


    刚刚试过了,在全屏的时候添加actionBar,软件盘弹出的时候actionBar一样也会被顶没。
      

  5.   

    楼主你中间的聊天 是用的listView吗
      

  6.   


    恩。我试了的,如果不是全屏(就是系统的状态栏显示)我那个顶部bar就不会被顶没,只要是全屏我上面的那个顶部bar就会被顶没。
      

  7.   

    <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
        <include layout="@layout/bar" />    <EditText
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:id="@+id/editTest"
                />
        <ListView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_above="@id/editTest"
                />
    </RelativeLayout>
    这个是我现在的布局,我点击最下方的输入框,上面那个bar还是要被顶没。
      

  8.   

    请问楼主,非全屏模式怎么实现 bar下面 的布局上移 ? 求教.