这是我第一次使用在线回收视图。1.如何区分向上滚动和向下滚动3.更新回收站视图后,如何保住自己的位置,不再回到原来的位置?我为recyclerview写了这些代码。CustomListAdapterForPostOrgan
public class AdapterRcycelerViewPersonalOrgan extend
好的,伙计们,我需要找到一种方法来改变RecyclerView的方向变化到顶部的距离,因为它在水平和垂直上是不同的,我对项目进行了处理,onBindViewHolder,但我也需要为RecyclerViewthis.layoutInflater.inflate(R.layout.row_item, parent, false);
// Create layout params for the RecyclerView
我正在通过一个按钮添加一个项目。但是,当按下按钮时,第一项将被更新,但屏幕在此之后不会更新。我试过debugging和Adapter和DiffUtil。通过在适配器中使用List,我检查了currentList是否是submitted,但是断点只对第一个条目起作用,并且对之后添加的项不停止。我写错了什么代码?
override fun onCreateView(
inflater: L