Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Лучшие практики RecyclerView
Search
PavelBo
June 29, 2021
Technology
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Лучшие практики RecyclerView
PavelBo
June 29, 2021
Transcript
34 slides
Павел Борзиков 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 Спасибо за внимание
Other Decks in Technology
See All in Technology
AWS Quick 入門 | 目指せ Quick マスター 01
inariku
PRO
2
350
マネージャーをエスパーにしない マネジメントされる側から始める、働きやすい現場づくり
comi190327
0
520
gem install とrequire のむこうがわ
ydah
0
100
Go初心者のクラウドエンジニアが、デプロイを通して旨味を知っていく話
ryudai
1
220
Agent Harnessはどう作る?事例から学ぶAI Agentの設計思想
sergicalsix
0
320
SREのためのFinOps入門
muziyoshiz
3
1.6k
81天的 AI Agent 軟體開發團隊治理實務分享
regionbbs
0
170
思考過程から秘密が漏れる:Amazon Bedrock上のKimi K3を5つの方法で攻めたら、25回中22回漏洩した話
yama3133
1
160
AI時代における医療情報システムのセキュリティ / Security of Healthcare IT Systems in the AI Era
henryofficial
0
170
Sonnetだけで業務はまわる?
kintotechdev
1
130
The Author Pays
hiccupps
0
230
AI対話型分析を作成し、リリースするまでの話 / The Road to Release: Buiding AI Conversational Analytics
yappli_developers
0
140
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
490
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
900
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
530
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
280
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
450
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
How STYLIGHT went responsive
nonsquared
100
6.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Speed Design
sergeychernyshev
33
2.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k