RecyclerView.Adapter绘制所有元素时的Kotlin回调

问题描述 投票:0回答:1

我正在使用recyclerview列出一些元素,我想知道RecyclerView.Adapter何时绘制了我发送的所有元素。有什么办法吗?

android android-studio kotlin android-recyclerview recycler-adapter
1个回答
0
投票

请尝试使用此方法:

class MyAdapter : RecyclerView.Adapter`<`MyAdapter.MyViewHolder`>`(){

    // And then please Implement methods here of it.
}
© www.soinside.com 2019 - 2024. All rights reserved.