jae*_*ede 1 android-layout android-softkeyboard android-fragments bottom-sheet
我有一个BottomSheetDialogFragment从另一个片段打开.
bottom_sheet_fragment.xml:
<LinearLayout>
<TabLayout/>
<ViewPager>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我有两个视图寻呼机片段,每个片段包含一个EditText和一个RecyclerView垂直方式.
view_pager_fragment1.xml:
<LinearLayout>
<EditText/>
<RecyclerView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
现在,当我点击编辑文本时,回收站视图的一部分隐藏在键盘后面.
预期: 当键盘出现时,底部表格应向上滚动,以便回收者视图内容保持可见.
我已经设法通过制作BottomSheetFragment布局的根视图来实现您想要的行为android.support.v4.widget.NestedScrollView.不知道它是否会为你工作,因为你似乎在使用其他滚动视图.