Disable and enable parent scroll based on recycler view visibility
<p>I have an Edittext. When the user clicks on it, I show up suggestions in a recycler view based on the keyword typed. The parent view containing the edittext (alongwith other items) is scrollable. I want the parent scrolling to be disabled when the recycler view is visible, and the enable again when the recycler view is invisible.</p>

<pre><code>    &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/parent_scroll_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"&gt;

&lt;EditText
..
..
..
..
&lt;/EditText


    &lt;android.support.v7.widget.RecyclerView
    android:id="@+id/mentions_grid"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/&gt;
&lt;ScrollView&gt;
</code></pre>

<p>When the recycler view is visible as a dropdown of the edittext, how to disable the main parent scrollview.?</p>