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
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
370
A talk about Talks- AndroidMarkerFR
codingchick
0
320
Inside The Room- DCBln21 revised edition
codingchick
0
400
A talk about Talks - the extended version
codingchick
0
260
A talk about Talks
codingchick
0
130
Inside the room- DC SF edition
codingchick
0
300
Inside the room
codingchick
2
390
Images 101 - NYC
codingchick
0
330
Images 101
codingchick
1
430
Other Decks in Technology
See All in Technology
TypeScript入門 2026
recruitengineers
PRO
3
680
Data Hubグループ 紹介資料
sansan33
PRO
0
3.2k
強化学習「理論」入門
enakai00
3
3.6k
Genie Codeハンズオン応用編
taka_aki
0
120
同じWAFが、攻撃の“形”は弾く── 正当な“形”の不正は通す
kuroneko13
0
240
システム思考で問題に対処する
yussak
0
340
Webアクセシビリティ入門 2026
recruitengineers
PRO
3
650
ブラウザ研修 2026
recruitengineers
PRO
7
1.2k
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」紹介資料
laysakura
2
9.2k
つくって納得、つかって実感! 大規模言語モデルことはじめ ver2.0
recruitengineers
PRO
5
1.9k
制約理論(ToC)入門 2026版
recruitengineers
PRO
8
2.6k
エンドユーザー視点で見る SansanのMeraki活用と内製自動化
sansantech
PRO
0
110
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
11
39k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Bash Introduction
62gerente
615
220k
The World Runs on Bad Software
bkeepers
PRO
72
12k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
The SEO identity crisis: Don't let AI make you average
varn
0
530
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
940
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
Google's AI Overviews - The New Search
badams
0
1.1k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
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)