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
340
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
210
A talk about Talks- AndroidMarkerFR
codingchick
0
210
Inside The Room- DCBln21 revised edition
codingchick
0
260
A talk about Talks - the extended version
codingchick
0
140
A talk about Talks
codingchick
0
90
Inside the room- DC SF edition
codingchick
0
150
Inside the room
codingchick
2
240
Images 101 - NYC
codingchick
0
190
Images 101
codingchick
1
290
Other Decks in Technology
See All in Technology
言葉は感情の近似値である。その感情と言葉の誤差を最小化しよう ~コミュニケーションにおけるアナログ/デジタル変換の課題に立ち向かう~
nktamago
0
240
効果的なオンコール対応と障害対応
ryuichi1208
6
3.1k
どこよりも遅めなWinActor Ver.7.5.0 新機能紹介
tamai_63
0
210
DuckDB雑紹介(1.1対応版)@DuckDB座談会
ktz
6
1.4k
横断組織として考える共通DBの課題解決 〜 桃園の誓いアーキテクチャ 〜 / Addressing Shared Database Challenges as Cross-Team: “Peach Garden Oath” Architecture
4geru
0
180
JTCや セキュリティチェックリストが夢の跡
nikinusu
1
770
「認証認可」という体験をデザインする ~Nekko Cloud認証認可基盤計画
logica0419
2
450
タイミーのレコメンドにおける ABテストの運用
ozeshun
1
200
持続可能なソフトウェア開発を支える『GitHub CI/CD実践ガイド』
tmknom
8
1.4k
Agile in Automotive Industry, puzzles and lights.
hiranabe
3
1.4k
Segment Anything Model 2
tenten0727
3
720
20240912 JJUGナイトセミナー
mii1004
0
140
Featured
See All Featured
The Invisible Side of Design
smashingmag
296
50k
Design by the Numbers
sachag
277
19k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
Infographics Made Easy
chrislema
239
18k
Agile that works and the tools we love
rasmusluckow
327
20k
Why Our Code Smells
bkeepers
PRO
334
56k
GitHub's CSS Performance
jonrohan
1030
450k
The Language of Interfaces
destraynor
153
23k
From Idea to $5000 a Month in 5 Months
shpigford
379
46k
Building Flexible Design Systems
yeseniaperezcruz
325
38k
Embracing the Ebb and Flow
colly
83
4.4k
Optimizing for Happiness
mojombo
375
69k
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)