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
Recycler View - Android Alliance March 2016
Search
Yash Prabhu
March 30, 2016
Technology
230
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
Transcript
11 slides
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
More Decks by Yash Prabhu
See All by Yash Prabhu
Getting Started with Conference Speaking
yprabhu
0
290
DroidCon NYC 2019: Being more than an Android developer
yprabhu
0
210
Keynote: Being more than an Android Developer
yprabhu
4
1.5k
Intro to Augmented Reality on Android
yprabhu
0
220
ElaConf2017
yprabhu
1
650
Onboarding Engineers
yprabhu
1
350
Mastering Android's App Resources
yprabhu
5
970
Chicago Roboto - Design Develop Deploy!
yprabhu
2
570
DroidCon NYC 2016 - A Material Design guide for Android developers
yprabhu
2
620
Other Decks in Technology
See All in Technology
3文字略語に騙されない! 世界一わかりやすい『EDR』超入門
kamadamakoto
1
120
E2E Test というハーネス — AI時代の自動テスト民主化
daishukojima
1
690
AWS Emulator を評価する: 手元で動く AWS の API の仕組み、始め方、確かめ方
inariku
PRO
1
530
81天的 AI Agent 軟體開發團隊治理實務分享
regionbbs
0
170
長い仕事を任せる (Workflows、クラウドセッション、Kiro Web) | 目指せ Kiro マスター 10
inariku
PRO
3
190
【Oracle AI SPOTLIGHT ウェビナー】【特別開催:日本語で解説!】Oracle AI World 2026 最新情報フィードバック
oracle4engineer
PRO
1
210
速くなった開発の効果をどう推し量るのか
bulbulpaul
0
110
属人化したISMS運用をGitHubとAIで仕組み化した1年間の記録
sioncojp
4
2.6k
Shared Signals Framework 仕様解説
oidfj
0
430
ライフワーク「猫でもわかるDirectConnect」
kentapapa
0
330
内製アプリとClaudeスキルのセキュリティチェック、 Backlogの課題で回しています。
ayaka_egaaa
0
190
SREのためのFinOps入門
muziyoshiz
3
1.5k
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.4k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
370
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
330
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Music & Morning Musume
bryan
48
7.5k
Designing Experiences People Love
moore
143
24k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.2k
Un-Boring Meetings
codingconduct
0
500
Leo the Paperboy
mayatellez
11
2.5k