我想知道是否有一种方法可以将我的scrollView推得比"android:windowSoftInputMode="adjustPan"
更高。它看起来有点像现在的样子。 enter image description here
图片
答案 0 :(得分:1)
你应该使用
"android:windowSoftInputMode="adjustUnspecified"
布局 .....检查--->
的 layout_height<RelativeLayout
android:layout_width="match_parent"
android:layout_height="55dp"
android:background="#F7F7F7"
android:layout_alignParentBottom="true">
<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:hint="New Message"
android:textSize="16sp"
android:gravity="center_vertical"
android:background="@drawable/round_corner_msg_box"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:paddingLeft="5dp"
android:paddingStart="5dp"
android:layout_margin="5dp"/>
</RelativeLayout>