张旭童

Results 54 comments of 张旭童

自己写一个ItemDecoration,根据你具体情况自己绘制头部了。

canvas在手 想画什么画不出

我目前做的删除 都是通过修改数据体 刷新界面 去实现,相当于重新为ViewGroup add View。 想想ListView、RecyclerView也是如此, 如果你觉得这样不好的话,你希望以哪种形式去使用去删除View?指定下标 顺序?还是?

你想一下 这本身是一个ViewGroup,已经提供了提供positon删除View的方法啦。

我已经修复这个bug,以后刷新界面 建议使用: ``` final SingleAdapter adapter1 = new SingleAdapter(this, mDatas, R.layout.item_50k) { @Override public void onBindViewHolder(ViewGroup parent, ViewHolder holder, K50Bean data, int pos) { holder.setText(R.id.tv, data.getName()); } }; //单一ItemView //ViewGroupUtils.addViews(llCurrent,...

没遇到过这个问题诶,挂在这里给其他人一个参考吧。

没太看懂 最大长度不一样?

我实现了DataBinding的 通用adapter,两位兄台有兴趣可以去https://github.com/mcxtzhang/all-base-adapter 看看。 用法在:https://github.com/mcxtzhang/all-base-adapter/blob/master/README-cn-DataBinding.md