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
More Decks by Yash Prabhu
See All by Yash Prabhu
Getting Started with Conference Speaking
yprabhu
0
270
DroidCon NYC 2019: Being more than an Android developer
yprabhu
0
200
Keynote: Being more than an Android Developer
yprabhu
4
1.5k
Intro to Augmented Reality on Android
yprabhu
0
210
ElaConf2017
yprabhu
1
640
Onboarding Engineers
yprabhu
1
350
Mastering Android's App Resources
yprabhu
5
960
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
Let's Change Our World—Again
snoozer05
PRO
5
330
How to Design Configuration for Rails Applications
willnet
1
1.1k
~最速でビジネスインパクトを創出する~ Sansanのデータ基盤と活用事例
sansantech
PRO
0
120
Claude Code on Bedrock で統制をかける小ネタ集/claude-code-bedrock-governance-tips
emiki
1
210
VLA-JEPA: Enhancing Vision-Language-Action Models with Latent World Models
takmin
0
110
macOS Golden Gate 時代のMac管理
tategami
0
130
Steerable Visual Representations
sansantech
PRO
0
160
AWSDirectConnectの構築の進め方を整理してみた
masa_my
1
140
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
190
顧客価値を追いかけたら、プライシングにたどり着いた
sansantech
PRO
2
450
S3 Filesで挑む! 八戸せんべい汁の食べ頃問題
usanchuu
0
150
価値について
gree_tech
PRO
0
140
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
59k
The SEO identity crisis: Don't let AI make you average
varn
0
590
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Become a Pro
speakerdeck
PRO
31
6.3k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
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