我有一个只包含编辑文本视图的相对布局。但是,当edittext的内容增加时,我的标题栏会向上移动。我经历的大多数解决方案解决了键盘弹出时移动标题栏的问题。但是,如果内容增加,我没有发现任何东西。我还使用了android:isScrollContainer =“false”,如How to avoid soft keyboard pushing up my layout?这个帖子所建议的,但仍然是同样的问题。有没有办法阻止它?这里是我的xml文件 编辑文本内容时,Android标题栏被拉高
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroll_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:isScrollContainer="false"
android:background="@drawable/background" >
<EditText
android:id="@+id/hidden_edit_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:imeOptions="flagNoExtractUi"
android:inputType="textMultiLine"
android:singleLine="false"
android:paddingLeft="10sp"
android:paddingTop="5sp"
android:paddingRight="5sp"
android:scrollbars="vertical"
android:background="@android:color/transparent"
android:textSize="26sp" >
</EditText>
</RelativeLayout>
还是一样的,我没有看到,也没有工作背景和布局转移 – Anurag 2013-04-08 17:47:13