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
{{ message }}
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
现如今使用以下方式驱动界面显示
adapters.add(new SubAdapter(this, new ColumnLayoutHelper(), 0));
这种方式的话感觉UI的展示全靠List<Adapter>这里面的东西进行驱动的,
如果使用adapter.notifyItemRemove(pos,count);方式局部刷新UI的话,
除了必须更改的原始的数据源List<Data>,还要更改List<Adapter>,逻辑上感觉过于复杂
能否直接通过原始的的数据源List<Data>方式驱动,不用List<Adapter>,就像viewType一样,搞一个layoutType由框架层去自动匹配,大不了Data这个原始数据必须实现一些配置layout属性的接口,这样的话在使用的复杂度上面有明显的降低,不容易引起困惑,也更匹配原生adapter的使用习惯,目前这种方式操纵数据驱动UI过于复杂,有没有考虑过相关问题呢?
The text was updated successfully, but these errors were encountered: