当前位置:网站首页>RecyclerView 缓存与复用机制
RecyclerView 缓存与复用机制
2022-08-04 17:10:00 【咋就那么爱学习】
缓存什么?复用什么? ----答:缓存ViewHolder 即 包装View的 也就是一个个ItemView(条目)
所谓缓存,就是看RecyclerView 怎么往四级缓存中添加数据的
当没有缓存的时候??
--- mAdapter.createViewHolder --> onCreateViewHolder
创建ViewHolder 后 绑定: tryBindViewHolderByDeadline --> mAdapter.bindViewHolder--> onBindViewHolder
一: 缓存流程
缓存入口1:
缓存入口2:
二 :复用流程(从缓存中去获取,即从集合中去获取)
复用入口1:
复用入口2:
边栏推荐
猜你喜欢
随机推荐
taro 滚动组件ScrollView
ctfshow 萌新web1-21
美容院管理系统有哪些促销方式?
【Gazebo入门教程】第二讲 模型库导入与可视化机器人建模(模型编辑器)
【商家联盟】云平台—异业联盟,打造线上线下商业相结合的系统
机器学习入门到大神专栏总览
机器学习(十七):网格搜索(Grid Search)和SVM
Mobile magic box CM201-1_CW_S905L2_MT7668_wire brush firmware package
JSP的Web监听器(Listener)
xgboost模块param中的一些错误
arm交叉编译
麒麟信安石勇博士荣获openEuler社区年度开源贡献之星
Codeforces Round #811 (Div. 3)
Digital-intelligent supply chain management system for chemical manufacturing industry: build a smart supply system and empower enterprises to improve production efficiency
Json的FastJson与Jackson
Understand Chisel language. 32. Chisel advanced hardware generator (1) - parameterization in Chisel
hi, 请问下这是什么问题, 我看官网的example就是mysql的, 咋提示不支持?
LeetCode Question of the Day - 1403. Minimum Subsequence in Non-Increasing Order
罗振宇折戟创业板/ B站回应HR称用户是Loser/ 腾讯罗技年内合推云游戏掌机...今日更多新鲜事在此...
越来越火的图数据库到底能做什么?