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
1
440
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
310
A talk about Talks- AndroidMarkerFR
codingchick
0
290
Inside The Room- DCBln21 revised edition
codingchick
0
360
A talk about Talks - the extended version
codingchick
0
220
A talk about Talks
codingchick
0
110
Inside the room- DC SF edition
codingchick
0
250
Inside the room
codingchick
2
360
Images 101 - NYC
codingchick
0
290
Images 101
codingchick
1
400
Other Decks in Technology
See All in Technology
Amazon Bedrock AgentCore EvaluationsでAIエージェントを評価してみよう!
yuu551
0
180
DatabricksホストモデルでAIコーディング環境を構築する
databricksjapan
0
180
Git Training GitHub
yuhattor
1
270
エンジニアとして長く走るために気づいた2つのこと_大賀愛一郎
nanaism
1
250
JuliaTokaiとしてはこれが最後かもしれない(仮) for NGK2026S
antimon2
0
120
BPaaSオペレーション・kubell社内 n8n活用による効率化検証事例紹介
kentarofujii
0
310
メルカリのAI活用を支えるAIセキュリティ
s3h
7
4.6k
Hardware/Software Co-design: Motivations and reflections with respect to security
bcantrill
1
260
SwiftDataを覗き見る
akidon0000
0
310
漸進的過負荷の原則
sansantech
PRO
3
400
20260120 Amazon VPC のパブリックサブネットを無くしたい!
masaruogura
2
160
Azure SRE Agent x PagerDutyによる近未来インシデント対応への期待 / The Future of Incident Response: Azure SRE Agent x PagerDuty
aeonpeople
0
200
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
Optimizing for Happiness
mojombo
379
71k
Documentation Writing (for coders)
carmenintech
77
5.2k
Believing is Seeing
oripsolob
1
42
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
260
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
280
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
83
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Building Adaptive Systems
keathley
44
2.9k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
130
My Coaching Mixtape
mlcsv
0
40
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
150
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)