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
Android TV Talk
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Effie Barak
December 03, 2015
Technology
470
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android TV Talk
Effie Barak
December 03, 2015
More Decks by Effie Barak
See All by Effie Barak
Working with AOSP- Droidcon NY 2022
codingchick
0
360
A talk about Talks- AndroidMarkerFR
codingchick
0
310
Inside The Room- DCBln21 revised edition
codingchick
0
390
A talk about Talks - the extended version
codingchick
0
250
A talk about Talks
codingchick
0
120
Inside the room- DC SF edition
codingchick
0
290
Inside the room
codingchick
2
380
Images 101 - NYC
codingchick
0
320
Images 101
codingchick
1
420
Other Decks in Technology
See All in Technology
Bucharest Tech Week 2026 - Reinventing testing practices in the AI era
edeandrea
PRO
1
170
エラーバジェットのアラートのタイミングを考える.pdf
kairim0
0
180
現場のトークンマネジメント
dak2
0
100
AIチャット検索改善の3週間
kworkdev
PRO
2
140
When Platform Engineering Meets GenAI
sucitw
0
130
Kiroで書いた 設計書 が AI レビューの 採点基準 になる
ezaki
0
130
LayerX コーポレートエンジニアリング室におけるサプライチェーンセキュリティへの取り組み / Supply Chain Security at LayerX Corporate Engineering
yuyatakeyama
2
690
SteampipeとExcel Power QueryでAWS構成定義書の作成を自動化する
jhashimoto
0
160
Agile and AI Redmine Japan 2026
hiranabe
3
330
2026TECHFRESH畢業分享會 - Lightning Talk - 打造精準高效的 MCP 設計模式與測試實務
line_developers_tw
PRO
0
1.3k
MUSUBI 田中裕一『AIと共に行う「しごとのリデザイン」- スモールバックオフィス編』AI Ops Lab #4
musubi
0
270
AI-DLCを “そのまま導入しなかった”話 ~組織に合わせてアジャストした 私たちの実践共有~
hiroramos4
PRO
0
230
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
1
490
Designing for Timeless Needs
cassininazir
1
260
Paper Plane (Part 1)
katiecoart
PRO
0
9.1k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
970
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Code Review Best Practice
trishagee
74
20k
Faster Mobile Websites
deanohume
310
31k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
390
HDC tutorial
michielstock
2
720
Designing Powerful Visuals for Engaging Learning
tmiket
1
420
Test your architecture with Archunit
thirion
1
2.3k
Transcript
ANDROID TV APPLICATION Effie Barak (@CodingChick)
None
None
Support libraries required Either Glide or Picasso can work, there
are implementation differences
Which version of the support libraries to use? The latest
one that works - All support libraries versions need to be the same. - SQLCipher needs to be 3.3.1-1or higher. Which didn’t work so well for me :(
Application Manifest Changes
Theme to play with
Tons of auto generated code!
Main page birdview
Main page birdview scrolling
Main Fragment that extends BrowseFragment: ArrayObjectAdapter ListRowPresenter ImageCardView
Hooking up Udemy’s model
Click events should use Course model
CourseCardPresenter extends Presenter (Is just your everyday adapter)
ImageCardView is provided by leanback • CARD_TYPE_INFO_OVER (1) • CARD_TYPE_INFO_UNDER
(2) • CARD_TYPE_INFO_UNDER_WITH_EXTRA (3) • CARD_TYPE_MAIN_ONLY (0)
Course Details birdview
Course Details scrolled down
CourseDetailsFragment DetailsOverviewRowPresenter ClassPresenterSelector ListRowPresenter ImageCardView
DetailsOverviewRowPresenter is deprecated New class- FullWidthDetailsOverviewRowPresenter with different UI :(
LecturePresenter is similar to CoursePresenter
Details row gets its own Presenter
Creating the course details row
Creating the lectures row
Hooking it all up to the ClassPresenterSelector
Clicking on a lecture starts the Playback activity
Playback Activity
Playback Activity
Playback Activity
PlaybackOverlayFragment extends leanback’s PlaybackOverlayFragment ClassPresenterSelector DetailsOverviewRowPresenter ListRowPresenter
Instantiating the base structure
Adding all the ACTIONS Etc etc etc…
Hooking up the actions listeners
Video! Warp 9! Engage!
The VideoView plays things
Implementation of MediaSession
And the callbacks class
playPause method
The controls in the PlaybackControlsRow need to know.
The actions click events can invoke the MediaController’s methods
Voice search
Voice search
Searchinggg
In the Search Fragment
The actual search
Loading the results
Handling clicking on a result
Starting the whole thing up
Useful resources: https://github.com/googlesamples/androidtv-Leanback Default auto- generated template https://developer.android.com/training/tv/index.html (Sorta, kinda,
maybe)