在这里,只有构造函数在调用,数据正在数组列表中传递,但是没有发生任何其他事情,没有其他函数正在调用-public class RentCarRecyclerAdapter extendsmatch_parent"
app:layoutManager="android.support.v7.widget.Linear
我已经创建了一个片段,在这个片段中我有一个回收视图,但是当我的片段被加载时,什么也没有显示,它给我这个错误"E/ recyclerview :没有附加适配器;跳过布局“。下面是适配器和片段类的代码,如果有任何帮助,我们将不胜感激 适配器类: class ViewAllRecipeAdapter(private val newList: ArrayList<Recipes= view.findViewById<RecyclerVie
加载活动后,我想滚动到RecyclerView列表的底部。每次发送或接收消息时,我都需要滚动到底部才能阅读消息。如何将其配置为在发送或接收消息时自动滚动?以下是我到目前为止拥有的代码:recyclerView.setHasFixedSizeLinearLayoutManager linearLayoutManager = new LinearLayoutManager(thi