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
Recycler View - Android Alliance March 2016
Search
Yash Prabhu
March 30, 2016
Technology
220
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Recycler View - Android Alliance March 2016
An intro to RecyclerView
Yash Prabhu
March 30, 2016
More Decks by Yash Prabhu
See All by Yash Prabhu
Getting Started with Conference Speaking
yprabhu
0
250
DroidCon NYC 2019: Being more than an Android developer
yprabhu
0
190
Keynote: Being more than an Android Developer
yprabhu
4
1.5k
Intro to Augmented Reality on Android
yprabhu
0
200
ElaConf2017
yprabhu
1
630
Onboarding Engineers
yprabhu
1
340
Mastering Android's App Resources
yprabhu
5
950
Chicago Roboto - Design Develop Deploy!
yprabhu
2
540
DroidCon NYC 2016 - A Material Design guide for Android developers
yprabhu
2
600
Other Decks in Technology
See All in Technology
AWS Blocks を触ってみた/first-tach-aws-blocks
fossamagna
2
150
4人目のSREはAgent
tanimuyk
0
400
初めてのDatabricks勉強会
taka_aki
2
240
Control Planeで育てるBtoB SaaSの認証基盤 - SRE NEXT 2026
pokohide
1
1k
どうして今サーバーサイドKotlinを選択したのか
nealle
0
210
GuardrailからGovernanceへ~AIエージェント運用の次の課題~
sbspsy
1
220
CIで使うClaude
iwatatomoya
0
140
Keeping applications secure by evolving OAuth 2.0 and OpenID Connect
ahus1
PRO
1
150
AI Agent SaaS を支える自社仮想化基盤への挑戦と実運用 / ai-agent-saas-virtualization
flatt_security
2
2.4k
Foxgloveについて 実際にExtensionを開発して公開するまでの話 / About Foxglove: The Story of Developing and Releasing an Extension
ry0_ka
0
180
“ID沼入口” - 基本とセキュリティから始める、考え続けるためのID管理技術勉強会 告知&イントロ
ritou
0
430
“全部コピーしない”ファイルデータの活用 : — FSx for ONTAP × S3 Tables × Icebergで作るメタデータカタログ
yoshiki0705
0
530
Featured
See All Featured
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
72
40k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
960
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Abbi's Birthday
coloredviolet
3
8.5k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
So, you think you're a good person
axbom
PRO
2
2.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
First, design no harm
axbom
PRO
2
1.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Transcript
RecyclerView Yash Prabhu @yashvprabhu github.com/yprabhu yprabhu.com dramafever.com
What is RecyclerView?
What does it look like?
Under the hood Recycler View Layout Manager Adapter Dataset Item
Animator
Show me the code! compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:recyclerview-v7:23.1.1'
Add RecyclerView to your layout <android.support.v7.widget.RecyclerView android:id="@+id/my_recycler_view" android:scrollbars="vertical" android:layout_width="match_parent" android:layout_height="match_parent"/>
View Item <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android. com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="300dp"
android:layout_height="300dp" android:layout_margin="@dimen/spacing"> <ImageView android:id="@+id/image" android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" tools:src="@mipmap/ic_launcher" /> <TextView android:id="@+id/text" android:layout_width="match_parent" android:layout_height="60dp" android:layout_gravity="bottom" android:textColor="@android:color/white" android:gravity="center" android:background="#80222222" android:padding="@dimen/spacing" tools:text
Show me the code! setContentView(R.layout.recycler_layout); recyclerView = (RecyclerView) findViewById(R.id.my_recycler_view); recyclerView.setHasFixedSize(true);
adapter = new RecyclerAdapter(items, R.layout.grid_view_item); recyclerView.setAdapter(adapter); layoutManager = new GridLayoutManager(this, spanCount); recyclerView.setLayoutManager(layoutManager); recyclerView.setItemAnimator(new DefaultItemAnimator());
Demo RecyclerViewExample
When should I use a RecyclerView?
RecyclerView Yash Prabhu @yashvprabhu github.com/yprabhu yprabhu.com dramafever.com