Android SnackBar above keyboard with FAB
<p>I have a problem with my app: a strange behavior on Version >= Lollipop, due to AndroidBug5497Workaround.</p>

<p>I'm using coordinator layout, collapsing toolbar, fragments, floating action buttons and snackbar, everything works fine on pre-lollipop.
I need to show my Fab over keyboard, and I use the AndroidBug5497Workaround. (according with <a href="https://stackoverflow.com/questions/7417123/android-how-to-adjust-layout-in-full-screen-mode-when-softkeyboard-is-visible/19494006#19494006">Joseph Johnson's solution</a>)</p>

<p>But with this solution the snackbar is getting crazy.
I'm using all android's support libraries 23.2.+, and in my manifest I've set <code>android:windowSoftInputMode="stateAlwaysHidden|adjustResize"</code> for this activity</p>

<p>That's the structure of my activity :</p>

<pre><code>&lt;Coordinator Layout&gt;
    &lt;Collapsing Toolbar /&gt;
    &lt;Linear Layout&gt;
       &lt;Fragment /&gt;
    &lt;/Linear Layout&gt;
    &lt;Floating Action Button /&gt;
&lt;/Coordinator Layout&gt;
</code></pre>

<p>And that's the fragment:</p>

<pre><code>&lt;Linear Layout&gt;
    &lt;Nested Scroll View&gt;
        &lt;Linear Layout&gt;
            &lt;CardView 1/&gt;
            &lt;CardView 2/&gt;
            &lt;CardView n/&gt;
        &lt;/Linear Layout&gt;    
    &lt;/Nested Scroll View&gt;
&lt;/Linear Layout&gt;
</code></pre>

<p>Any help will be appreciate.
Thanks a lot.</p>

<p><a href="https://i.stack.imgur.com/son4H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/son4H.png" alt="Normal Behavior without keyboard"></a> </p>

<p><a href="https://i.stack.imgur.com/trcgm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/trcgm.png" alt="Pre Lollipop Behavior"></a>
<a href="https://i.stack.imgur.com/K3xxQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K3xxQ.png" alt="Lollipop"></a></p>