【发布时间】:2017-10-05 18:30:07
【问题描述】:
【问题讨论】:
标签: android android-layout window-soft-input-mode
【问题讨论】:
标签: android android-layout window-soft-input-mode
首先,将 android:windowSoftInputMode="adjustResize" 添加到 manifest.xml 中的活动中。
然后创建如下布局。
RelativeLayout
aligned to bottom。above。<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_above="@+id/bottomView"
android:layout_width="match_parent"
android:layout_height="wrap_content">
//scrollable content
</ScrollView>
<RelativeLayout
android:id="@+id/bottomView"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="wrap_content">
//your bottom content
</RelativeLayout >
</RelativeLayout>
【讨论】: