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
1
450
Android TV Talk
Effie Barak
December 03, 2015
Tweet
Share
More Decks by Effie Barak
See All by Effie Barak
Working with AOSP- Droidcon NY 2022
codingchick
0
330
A talk about Talks- AndroidMarkerFR
codingchick
0
300
Inside The Room- DCBln21 revised edition
codingchick
0
370
A talk about Talks - the extended version
codingchick
0
230
A talk about Talks
codingchick
0
110
Inside the room- DC SF edition
codingchick
0
260
Inside the room
codingchick
2
370
Images 101 - NYC
codingchick
0
300
Images 101
codingchick
1
410
Other Decks in Technology
See All in Technology
Tebiki Engineering Team Deck
tebiki
0
27k
コンテキスト・ハーネスエンジニアリングの現在
hirosatogamo
PRO
4
500
VPCエンドポイント意外とお金かかるなぁ。せや、共有したろ!
tommy0124
1
700
OCHaCafe S11 #2 コンテナ時代の次の一手:Wasm 最前線
oracle4engineer
PRO
2
150
[E2]CCoEはAI指揮官へ。Bedrock×MCPで構築するコスト・セキュリティ自律運用基盤
taku1418
0
190
実践 Datadog MCP Server
nulabinc
PRO
2
240
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
Claude Code Skills 勉強会 (DevelersIO向けに調整済み) / claude code skills for devio
masahirokawahara
1
22k
【Oracle Cloud ウェビナー】【入門編】はじめてのOracle AI Data Platform - AIのためのデータ準備&自社用AIエージェントをワンストップで実現
oracle4engineer
PRO
1
170
TypeScript 7.0の現在地と備え方
uhyo
7
1.8k
GCASアップデート(202601-202603)
techniczna
0
220
"作る"から"使われる"へ:Backstage 活用の現在地
sbtechnight
0
190
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
420
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
100
Embracing the Ebb and Flow
colly
88
5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
sira's awesome portfolio website redesign presentation
elsirapls
0
190
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Code Review Best Practice
trishagee
74
20k
Side Projects
sachag
455
43k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
400
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
110
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
210
Music & Morning Musume
bryan
47
7.1k
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)