This project is a sample Android TV application built using Kotlin and the Leanback Library, specially designed for beginners who want to learn Android TV app development.
The project demonstrates how to build a modern Android TV UI using official Leanback components recommended by Google.
The complete explanation of this project is available in Hindi through a YouTube tutorial.
- Android TV fundamentals
- Leanback Library usage
- Row-based and Grid-based TV UI
- Focus handling & D-Pad navigation
- Login and Video Details screen implementation
- Clean Kotlin code structure for Android TV
- BrowseSupportFragment
- RowsSupportFragment
- VerticalGridSupportFragment
- RowSupportFragment
- ListRowPresenter
- ArrayObjectAdapter
- Presenter
- HeaderItem
- RecyclerView
- ConstraintLayout
- FragmentActivity
- 📌 Video listing using Leanback rows and grids
- 📌 Smooth TV-optimized UI
- 📌 Login screen implementation
- 📌 Video Details screen inspired by real Android TV apps
- 📌 Proper remote (D-pad) navigation support
Below is the mapping of UI screens to their respective Kotlin implementation files for easy understanding:
- 🎬 Video Main Card →
VideoMainFragment.kt - 📂 Category Video Card →
CategoryVideoMainFragment.kt - 🧩 Video Grid Card →
VideoGridFragment.kt - 📜 RecyclerView Main Card →
RecycleMainFragment.kt - 🔐 Login Page →
LoginFragment.kt ▶️ Video Details Page →VideoDetailsActivity.kt
📌 This structure helps beginners easily locate and understand how each screen is implemented in the project.
Main Screens
| BrowseSupportFragment | RowsSupportFragment | VerticalGridSupportFragment |
|---|---|---|
![]() |
![]() |
![]() |
| List using RecyclerView | Login Page | Video Details Screen |
|---|---|---|
![]() |
![]() |
![]() |
- Language: Kotlin
- UI: Leanback Library
- Architecture: Fragment-based
- Platform: Android TV
- Build Tool: Gradle
- Clone the repository:
git clone https://github.com/Dinesh2510/Android-TV-Development-Using-the-Leanback-library






