Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Лучшие практики RecyclerView
Search
PavelBo
June 29, 2021
Technology
0
170
Лучшие практики RecyclerView
PavelBo
June 29, 2021
Tweet
Share
Other Decks in Technology
See All in Technology
AIと融ける人間の冒険
pujisi
0
110
#22 CA × atmaCup 3rd 1st Place Solution
yumizu
1
110
歴史から学ぶ、Goのメモリ管理基礎
logica0419
7
1.6k
Keynoteから見るAWSの頭の中
nrinetcom
PRO
1
160
わが10年の叡智をぶつけたカオスなクラウドインフラが、なくなるということ。
sogaoh
PRO
0
120
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
12k
「駆動」って言葉、なんかカッコイイ_Mitz
comucal
PRO
0
130
Claude Codeを使った情報整理術
knishioka
17
11k
「リリースファースト」の実感を届けるには 〜停滞するチームに変化を起こすアプローチ〜 #RSGT2026
kintotechdev
0
450
チームで安全にClaude Codeを利用するためのプラクティス / team-claude-code-practices
tomoki10
3
1.6k
Agentic AIが変革するAWSの開発・運用・セキュリティ ~Frontier Agentsを試してみた~ / Agentic AI transforms AWS development, operations, and security I tried Frontier Agents
yuj1osm
0
190
ESXi のAIOps だ!2025冬
unnowataru
0
470
Featured
See All Featured
Docker and Python
trallard
47
3.7k
Facilitating Awesome Meetings
lara
57
6.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Mobile First: as difficult as doing things right
swwweet
225
10k
The Invisible Side of Design
smashingmag
302
51k
Exploring anti-patterns in Rails
aemeredith
2
220
New Earth Scene 8
popppiees
0
1.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
73
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
エンジニアに許された特別な時間の終わり
watany
106
220k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
210
Transcript
Павел Борзиков 29.06.2021 Android Developer Которые вам стоит знать. ЛУЧШИЕ
ПРАКТИКИ RecyclerView
2 Начал разрабатывать под Андроид в 2014 году в Краснодарском
стартапе. Участвовал в разработке банковского приложения, позднее в сервисе доставки еды, сейчас стараюсь делать лучше жизнь пользователей Авито. ▶ Telegram: @elvisfromsouth Павел Борзиков Android Developer
3 Что будем делать?
4 Groupie > Groupie is a simple, flexible library for
complex RecyclerView layouts. val groupAdapter = GroupieAdapter() groupAdapter += CardItem() groupAdapter += TitleItem() recyclerView.adapter = groupAdapter https://github.com/lisawray/ groupie
5 Adapter Delegates > The idea of this library is
to build your adapters by composing reusable components. recyclerView.adapter = ListDelegationAdapter<List<Animal >> ( catAdapterDelegate( ... ), dogAdapterDelegate(), snakeAdapterDelegate() ) https://github.com/sockeqwe/ AdapterDelegates
6 Fingerprint RecyclerView Adapter Fingerprint Fingerprint Fingerprint
7 Fingerprint RecyclerView Adapter onCreateViewHolder? Fingerprint Fingerprint Fingerprint
8 Fingerprint RecyclerView Adapter onCreateViewHolder? Fingerprint Fingerprint Fingerprint Finding Fingerprint
9 Fingerprint RecyclerView Adapter onCreateViewHolder? Fingerprint Fingerprint Fingerprint
10 Переиспользование элемента
11 Переиспользование элемента
12 GroupVerticalItemDecoration Outer Divider Outer Divider Inner Divider Inner Divider
13 Расстановка отступов
14 Расстановка отступов
15 Расстановка отступов
16 Как починить «моргание» элемента? Удалить дефолтный ItemAnimator 01. Payload
02. ? ?
17 Как починить «моргание» элемента? Удалить дефолтный ItemAnimator 01. Payload
02. ?
18 Как починить «моргание» элемента? Удалить дефолтный ItemAnimator 01. Payload
02.
19 Как починить «моргание» элемента? Удалить дефолтный ItemAnimator 01. Payload
02.
20 ConcatAdapter GreenAdapter BlueAdapter RedAdapter
21 ConcatAdapter GreenAdapter BlueAdapter RedAdapter ConcatAdapter ( ) GreenAdapter BlueAdapter
RedAdapter
22 ConcatAdapter GreenAdapter BlueAdapter RedAdapter ConcatAdapter ( ) GreenAdapter BlueAdapter
RedAdapter
23 ConcatAdapter GreenAdapter BlueAdapter RedAdapter ConcatAdapter ( ) GreenAdapter BlueAdapter
RedAdapter
24 Item Life Cycle
25 Item Life Cycle Scroll
26 Item Life Cycle Scroll Scrap View
27 Item Life Cycle Scroll Scrap View Recycled Views
28 Item Life Cycle Scroll Scrap View Recycled Views Dirty
View
29 Item Life Cycle Scroll Scrap View Recycled Views Dirty
View Binding
30 Item Life Cycle Scroll Scrap View Recycled Views Dirty
View Attach Binding
31 Item Life Cycle Scroll Scrap View Recycled Views Dirty
View Attach Binding ViewPool
32 ViewPools View Pool View Pool View Pool
33 ViewPools View Pool
https://github.com/elvisfromsouth/ RecyclerViewTipsAndTricks Спасибо за внимание