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
360
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
220
A talk about Talks- AndroidMarkerFR
codingchick
0
210
Inside The Room- DCBln21 revised edition
codingchick
0
280
A talk about Talks - the extended version
codingchick
0
160
A talk about Talks
codingchick
0
91
Inside the room- DC SF edition
codingchick
0
170
Inside the room
codingchick
2
260
Images 101 - NYC
codingchick
0
200
Images 101
codingchick
1
310
Other Decks in Technology
See All in Technology
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
150
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
5
540
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
[FOSS4G 2024 Japan LT] LLMを使ってGISデータ解析を自動化したい!
nssv
1
210
隣接領域をBeyondするFinatextのエンジニア組織設計 / beyond-engineering-areas
stajima
1
270
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
370
いざ、BSC討伐の旅
nikinusu
2
770
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
490
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
190
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
A better future with KSS
kneath
238
17k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Documentation Writing (for coders)
carmenintech
65
4.4k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Done Done
chrislema
181
16k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Speed Design
sergeychernyshev
24
610
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Thoughts on Productivity
jonyablonski
67
4.3k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
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)