首页 > TAG信息列表 > LayoutManager

《Android》记录RecyclerView滑动位置

//自行替换自己的recyclerView val recyclerView = RecyclerView(this) val linearLayoutManager = LinearLayoutManager(this) recyclerView.layoutManager = linearLayoutManager //view的位置 var mutativePosition: Int