Android - Show BottomSheetDialogFragment above Keyboard : <p>I'm trying to show a <code>BottomSheetDialogFragment</code> with a few <code>EditText</code> fields for the user to enter information. I want to show it directly above the keyboard, but it keeps covering up the contents.</p>

<p>This is what happens when I bring up the <code>BottomSheetDialogFragment</code>, you can see it's selecting <code>Card Number</code> <code>EditText</code>, but covering the other content.</p>

<p><a href="https://i.stack.imgur.com/L6QiC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/L6QiC.png" alt="BottomSheetDialogFragment covering up content"></a></p>

<p>Ideally, this is what I'm looking for, you can see both <code>EditTexts</code>, and the padding of the View.</p>

<p><a href="https://i.stack.imgur.com/Htx0O.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Htx0O.png" alt="BottomSheetDialogFragment not covering up content"></a></p>

<p>I've tried a lot of solutions revolving around <code>windowSoftInputMode</code>, but nothing seems to work. I've set it to <code>adjustResize</code> for the parent <code>Activity</code> and the actual <code>BottomSheetDialogFragment</code> via</p>

<p><code>
dialog.window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
</code></p>

<p>And I've also tried modifying my layout, changing it from a <code>FrameLayout</code>, to a <code>ScrollView</code> to a <code>CoordinatorLayout</code> to see if that had any effect on the position of the layout, but nothing seems to work.</p>

<p>If anyone knows how to accomplish this, that would be greatly appreciated, thank you.</p>
