删除覆盖视图后 Recyclerview 不滚动

Recyclerview not scrolling after overlay view is removed

我有以下布局。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@android:color/transparent">     

   <android.support.v7.widget.RecyclerView
       android:id="@+id/horizontal_rcv"
       android:layout_width="match_parent"
       android:layout_height="90dp"
       android:alpha="1.0"
       android:padding="@dimen/dimen_16"/>

   <android.support.v7.widget.RecyclerView
       android:id="@+id/vertical_rcv"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:alpha="0.0"
       android:padding="@dimen/dimen_16"/>
</RelativeLayout>

基于一个事件,我使垂直回收器视图可见并消失了。

问题: 执行以下操作后,水平 recyclerview 将停止平滑滚动。水平滚动视图 alpha 从 1 - 0 - 1 更改,垂直 rcv 从 GONE - VISIBLE - GONE 更改。

我仍然通过添加 addOnItemTouchListener 在 onInterceptTouchEvent 中获得水平 rcv 的触摸事件,但滚动似乎断断续续。

有什么想法吗?

根据我的评论,

将高度设置为 0dp,而不是 View Gone