Open jupitar opened 2 years ago
srlFooterTranslationViewId 不是用来固定的,时用来指定应该滚动的View。srlFooterTranslationViewId 应该只想列表布局如下:
app:srlFooterTranslationViewId="@+id/recyclerview"
我开始使用的是这个加 app:srlFooterTranslationViewId="@+id/recyclerview",也不行,才换成固定的控件的
同问,在上拉加载时会把固定头部布局顶掉,效果非常不好
@wanshijie3 @jupitar
相同问题,找了一圈。指定app:srlFooterTranslationViewId="@+id/recyclerview"后依然不管用。然后试着在RecyclerView外层套一个FrameLayout就好使了(app:srlFooterTranslationViewId属性依然要指定)。可以试试。
按照之前的问题方式,加 app:srlFooterTranslationViewId="@+id/recyclerview",我把这个id换成recycerview或者我需要固定的控件的id还是不行。代码如下(框架版本1.0.5.1) <androidx.drawerlayout.widget.DrawerLayout android:layout_width="match_parent" android:layout_height="match_parent">
需要固定的布局是ll_label这个相对布局的内容