Android TableLayout滚动条和RecyclerView滚动条

Android TableLayout滚动条和RecyclerView滚动条,android,scroll,android-recyclerview,android-tablayout,Android,Scroll,Android Recyclerview,Android Tablayout,我正在使用带有水平回收视图的表格布局 问题是当我滚动recyclerView时,tabLayout优先于recyclerView 只有当TableAyout位于最后一个选项卡中时才会发生这种情况,TableAyout不再滚动 TabLayout具有以下属性 <android.support.design.widget.TabLayout android:id="@+id/tabs" android:layout_width="match_pa

我正在使用带有水平回收视图的表格布局

问题是当我滚动recyclerView时,tabLayout优先于recyclerView

只有当TableAyout位于最后一个选项卡中时才会发生这种情况,TableAyout不再滚动

TabLayout具有以下属性

<android.support.design.widget.TabLayout
            android:id="@+id/tabs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingBottom="1dp"
            android:elevation="6dp"
            app:tabMaxWidth="0dp"
            app:tabGravity="fill"
            app:tabMode="fixed"
            app:tabSelectedTextColor="#ffffff"
            app:tabIndicatorColor="#ffffff"
            app:tabTextAppearance="@style/CustomTextStyle"
            >
这个gif显示了问题所在

这里工作得很好,因为tabLayout不在最后一个选项卡中


您没有提供完整的代码,因此我不能说您在哪里犯了错误。但希望下面的文字能帮助你

     LinearLayoutManager llm = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);
        recyclerView.setLayoutManager(llm);
        recyclerView.setHasFixedSize(true);

之后,如果您将从最右边向左滑动,则在recyclerview之间的选项卡也将更改。

您是否尝试在recyclerview上设置NestedScrollingEnabled(false),我尝试了,但没有更改任何内容。还是不行,有人吗?我仍然有这个问题。。。recyclerView位于ScrollView内,ScrollView位于viewPager内。我使用了SetNestedScrollingEnabled(false),但不起作用。
     LinearLayoutManager llm = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);
        recyclerView.setLayoutManager(llm);
        recyclerView.setHasFixedSize(true);