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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
PavelBo
June 29, 2021
Technology
170
0
Share
Лучшие практики RecyclerView
PavelBo
June 29, 2021
Other Decks in Technology
See All in Technology
Databricksを用いたセキュアなデータ基盤構築とAIプロダクトへの応用.pdf
pkshadeck
PRO
0
290
終盤で崩壊させないAI駆動開発
j5ik2o
0
490
AI時代に新卒採用、はじめました/junior-engineer-never-die
dmnlk
0
240
🀄️ on swiftc
giginet
PRO
0
320
システムは「動く」だけでは 足りない - 非機能要件・分散システム・トレードオフの基礎
nwiizo
25
8.2k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
バックオフィスPJのPjMをコーポレートITが担うとうまくいく3つの理由
yueda256
1
300
AI環境整備はどのくらい開発生産性を変えうるか? #AI駆動開発 #AI自走環境
ucchi0909
0
120
すごいぞManaged Kubernetes
harukasakihara
1
390
Eight Engineering Unit 紹介資料
sansan33
PRO
3
7.2k
New CBs New Challenges
ysuzuki
1
170
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
74k
Featured
See All Featured
Paper Plane
katiecoart
PRO
1
49k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
250
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
Deep Space Network (abreviated)
tonyrice
0
110
Leo the Paperboy
mayatellez
7
1.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Unsuck your backbone
ammeep
672
58k
Test your architecture with Archunit
thirion
1
2.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
AI: The stuff that nobody shows you
jnunemaker
PRO
5
530
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
160
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 Спасибо за внимание