You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
你仔细观察会发现,执行的次数跟你的数据长度是一样的
在 2018-11-16 14:28:52,"AlexCheung" <[email protected]> 写道:
HI,你好啊。 我这边的日志发现,
@OverRide
public WebBannerAdapter.MzViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
LogTrack.i("create "+(createCount++));
return new MzViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_image, parent, false));
}
执行了 好多次
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
HI,你好啊。 我这边的日志发现,onCreateViewHolder执行了 好多次 ;
我记得,adapter 的oncreate方法,不应该执行这么多次的,有时间的话,你可以看一下啦;
比如我的 adapter.list 有120个,这么多;
执行了 好多次
The text was updated successfully, but these errors were encountered: