-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance improvement detected by BlockCanary #13
Comments
mInflater.inflate的View缓存下来List。下次再从服务端拿数据,比如下拉刷新的时候,判断缓存是否存在,存在拿出View加载数据+渲染样式,缓存不够,则mInflater.inflate。 |
@markzhai 为什么两个中国人,用英文交流? |
@CaMnter 啊擦 外面的README是英文啊。。。 |
@kaedea |
@markzhai 目前,他已经在开发加载插件化架构开发中炸裂了,这个库子一时半会没时间修 2333 ,实在不行你来个PR吧 2333。 |
@CaMnter 卧槽,不好好工作,去搞插件开发,竟然不炒鱿鱼 |
@markzhai 开发那个就是他的工作,此库子被你发掘出来,已经成为了他的黑历史,2333 。 干的漂亮! |
@CaMnter 另外几个功能类似的,都没他这个好用,虽然这个也有坑。。。 |
这个裤子从2015.05开始就有重构的计划: |
@markzhai 做过类似的需求,用的是FlowLayout ,动态addView进去。 |
等新桌子到后,来一波重构吧 |
TagView
private void drawTags() {
...
View tagLayout = (View) mInflater.inflate(R.layout.tagview_item, null);
...
}
drawTags is called in addTag, which makes it inflate multiple times if we iterator server result to addTag.
Suggestion:
maybe expose a method to call drawTags, instead of call it everytime when add a tag.
The text was updated successfully, but these errors were encountered: