How to keep the toolbar visible with adjustPan?
<p>I have a layout like the one below and I would like to have the following behavior when the user taps on the EditText:</p>

<ol>
<li>Keyboard should overlay the "LinearLayout aligned to the bottom";</li>
<li>EditText should be visible on the screen, not overlaid by the keyboard;</li>
<li>The toolbar should be visible on the screen;</li>
</ol>

<h3>My layout</h3>

<p><a href="https://i.stack.imgur.com/d1tyf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/d1tyf.png" alt="enter image description here"></a></p>

<h3>Expected behaviour</h3>

<p><a href="https://i.stack.imgur.com/VoWZI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VoWZI.png" alt="enter image description here"></a></p>

<h3>Actual result with windowSoftInputMode = adjustPan</h3>

<p>Requirements not met:</p>

<ol start="3">
<li>Toolbar should be visible on screen;</li>
</ol>

<p><a href="https://i.stack.imgur.com/5jNlW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5jNlW.png" alt="enter image description here"></a></p>

<h3>Actual result with windowSoftInputMode = adjustResize</h3>

<p>Requirements not met:</p>

<ol>
<li>Keyboard should overlay the "LinearLayout aligned to the bottom";</li>
</ol>

<p><a href="https://i.stack.imgur.com/oBfcD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oBfcD.png" alt="enter image description here"></a></p>

<h3>Actual result with windowSoftInputMode = adjustNothing</h3>

<p>Requirements not met:</p>

<ol start="2">
<li>EditText should be visible on screen, not overlaid by the keyboard;</li>
</ol>

<p><a href="https://i.stack.imgur.com/f5res.png" rel="noreferrer"><img src="https://i.stack.imgur.com/f5res.png" alt="enter image description here"></a></p>

<p>Has anyone faced the same issue and achieved the requirements?</p>