当android:WindowsOfInputMode=";“无任何调整”;
活动布局。当android:WindowsOfInputMode=";“无任何调整”;,android,android-recyclerview,android-softkeyboard,Android,Android Recyclerview,Android Softkeyboard,活动布局。 <android.support.design.widget.CoordinatorLayout> <ViewPager app:layout_behavior="@string/appbar_scrolling_view_behavior" /> <android.support.design.widget.AppBarLayout> <android.support.design.wi
<android.support.design.widget.CoordinatorLayout>
<ViewPager
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<android.support.design.widget.AppBarLayout>
<android.support.design.widget.CollapsingToolbarLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TabLayout
/>
<ImageView
/>
</FrameLayout>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>
问题是当RecyclerView
项目滚动到键盘顶部时,按钮应该隐藏,因为它在视图底部有按钮,可以动态添加新视图。
我甚至试着把RecyclerView
放在NestedScrollView
下,但什么也没发生
RecyclerView
中的项目如下所示项目
项目
项目
+钮扣 完成按钮 “完成”按钮需要隐藏在键盘后面,但视图的其余部分需要在键盘上方滚动。为了在它的地方完成任务。我在活动中使用了
adjustNothing
。但我的问题是,RecyclerView
项目也被隐藏在键盘后面
请多解释并清楚地说明标题请多解释并清楚地说明标题
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/fl_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/btn_done"
android:layout_alignParentTop="true" />
<Button
android:id="@+id/btn_done"
android:layout_width="match_parent"
android:layout_height="40dp"
/>
</RelativeLayout>
<include layout="@layout/some_other_layout" />
<include layout="@layout/some_other_layout" />
</FrameLayout>