PlaybackOverlayActivity & PlaybackOverlayFragment
– Android TV application hands on tutorial 7

PlaybackOverlayActivity & PlaybackOverlayFragment – Theory I will explain about only UI part in this chapter, video control is explained in next chapter. We will implement UI for handling video contents.   PlaybackOverlayActivity & PlaybackOverlayFragment – Implementation Creating PlaybackOverlayActivity & PlaybackOverlayFragment is the same way as in introduced previously. PlaybackOverlayActivity New → Activity → BlankActivity Activity Name: PlaybackOverlayActivity […]

Continue reading →

– Android TV app hands on Tutorial 6

ErrorActivity & ErrorFragment ErrorFragment is one of another layouts supported by Leanback library. ErrorActivity New -> Java Class -> Name: ErrorActivity * We don’t use layout file for showing ErrorActivity. Basically, it just attaches ErrorFragment.

ErrorFragment New -> Java Class -> Name: ErrorFragment * We don’t use layout file for showing ErrorActivity. ErrorFragment class is a subclass of


Continue reading →

DetailsOverviewRowPresenter & FullWidthDetailsOverviewRowPresenter
– Android TV application hands on tutorial 5

[Update 2015.12.14: revise & add DetailsOverviewRowPresenter sample implementation, see bottom of this post.] Aim of this chapter – DetailsActivity implementation Implementing setOnItemViewClickedListener – onItemClicked callback function in MainFragment After implementation, we can click cards to go to next action. We show content detail information for each Movie item in this chapter. DetailsActivity, VideoDetailsFragment, and DetailsDescriptionPresenter […]

Continue reading →

– Android TV application hands on tutorial 4

[Updated 2015.11.18]: Revise.[Updated 2016.3.13]: Updated wrong source code. Aim of this chapter Implementing background image update feature. Application was boring with no background, and it becomes much nice if it has appropriate background. Just setting background is easy, though, Android TV sample application explains how to dynamically change background linking with your current selection of […]

Continue reading →

How to use Presenter and ViewHolder? – Android TV application hands on tutorial 3

[Update 2015.11.18]: Revise. Aim of this chapter In previous chapter, we looked GridItemPresenter. Its relationship was following. Presenter: GridItemPresenter ViewHolder’s view: TextView CardInfo/Item: String This was easy example. In this chapter, we proceed to introduce another type of Presenter, Presenter: CardPresenter ViewHolder’s view: ImageCardView CardInfo/Item: Movie class ImageCardView ImageCardView class is provided from Android SDK, and it provides […]

Continue reading →

Construction of BrowseFragment
– Android TV application hands on tutorial 2

[Update 2015.11.17: revise] Construction of BrowseFragment In this chapter, we will implement a combination of header and selectable objects (so called “cards”). But before going to real implementation, it’s good to understand the construction of BrowseFragment. You can also read the source code in the sdk (android/support/v17/leanback/app/) by yourself.  Let’s start explaination by using Android TV […]

Continue reading →