A Leanback-based Android TV app for browsing movies and TV series, powered by The Movie Database (TMDB) API.
- Overview
- Features
- Screenshots
- Tech stack
- Architecture
- Getting started
- Development
- TMDB endpoints
- Resources
- License
Paradise is a remote-friendly catalogue for Android TV, Google TV and Android set-top boxes. It combines the AndroidX Leanback browse and details patterns with TMDB metadata: poster art, cast, genres, watch providers and trailers.
Everything is designed for the 10-foot UI: D-pad navigation, focus-driven scrolling, shared-element poster transitions, skeleton loading states and retryable error cards.
Background reading: How to develop an Android TV app.
| Area | Details |
|---|---|
| Home | Eight paginated rows (four movie, four TV) with endless horizontal scrolling and a backdrop that follows the focused title |
| Movies | Now Playing, Top Rated, Popular, Upcoming |
| TV series | On The Air, Airing Today, Popular, Top Rated |
| Search | Debounced movie search built on SearchSupportFragment |
| Details | Overview, rating, runtime, director, trailer action, genres, watch providers, cast and recommendations |
| Genres | Focusable genre chips that open a paginated movie grid |
| People | Biography, portrait and backdrop images, movie and series filmography |
| Trailers | YouTube embed in a WebView, with a hand-off to the YouTube app when the embed fails |
| States | Skeleton cards while loading, empty states, and retry cards on network errors |
| Focus | Leanback focus highlight (1.05× zoom and glow) on cards, outline-only selectors on chips |
| Localisation | English by default, Turkish (values-tr) included |
| Now Playing (focused) | Top Rated |
|---|---|
![]() |
![]() |
| Popular | Upcoming |
|---|---|
![]() |
![]() |
| Overview | Metadata and tags |
|---|---|
![]() |
![]() |
| Cast | Recommendations |
|---|---|
![]() |
![]() |
| Input | Results | Result detail |
|---|---|---|
![]() |
![]() |
![]() |
The screenshots are captured from an emulator by scripts/capture_screenshots.sh.
| Layer | Libraries |
|---|---|
| UI | AndroidX Leanback, AppCompat, CardView, Palette, Core SplashScreen |
| Networking | Retrofit 3, OkHttp 5, Gson |
| Async | RxJava 3, RxAndroid |
| Images | Glide 5 |
| Dependency injection | Dagger 2 |
| Playback | WebView (YouTube embed) with an external YouTube intent fallback |
| Build | Gradle 9.9, Android Gradle Plugin 9.5, version catalog (gradle/libs.versions.toml) |
| Language | Java 17 |
Every dependency resolves from Google Maven or Maven Central.
Activities MainActivity · SearchActivity · MediaDetailActivity
PersonDetailActivity · GenreMoviesActivity · PlayerActivity
│
Leanback fragments MainFragment · SearchFragment · DetailFragment
TvDetailFragment · PersonDetailFragment · GenreMoviesFragment
│
┌─────────────────────────────┼─────────────────────────────┐
MVP presenters Row / card presenters TheMovieDbAPI
(Main, Search, Genre) (Leanback Presenter classes) (Retrofit + RxJava)
- MVP for the browse, search and genre flows (
MainContract,SearchContract,GenreMoviesContract). - Leanback presenters render rows, cards and chips;
RowLoadingHelperswaps in skeleton, empty and error items. - Dagger builds one application-wide graph (
ApplicationComponent) that provides the HTTP client, the API and the presenters. - RxJava disposables are released when a view goes away (
BaseRxPresenter, fragmentonDestroy). ApiKeyInterceptorattaches the TMDB key to every request, so API methods never handle it.
com.halil.ozel.movieparadise
├── dagger/ Application component and modules
├── data/
│ ├── api/ Retrofit service and API-key interceptor
│ └── models/ TMDB response models
└── ui/
├── base/ Base activity, focus helpers, Glide and Palette utilities
├── common/ Loading, empty and error cards
├── main/ Home rows and pagination
├── search/ Movie search
├── detail/ Movie detail, cast, tag rows, person detail, trailer lookup
├── tv/ TV series detail
├── genre/ Genre-filtered grid
├── movie/ Movie card presenter
└── player/ Trailer player
Focus behaviour follows the Google TV focus guidelines:
- Poster cards use Leanback's
FocusHighlight.ZOOM_FACTOR_SMALLwith a neutral white glow. - Genre and provider chips live in a
TagListRowand use outline-only selector drawables, which avoids zoom flicker on small items. - On the home screen, Back first returns to the row headers; a second press within two seconds exits the app.
- A recent Android Studio release that supports Android Gradle Plugin 9.5
- JDK 17 or newer
- Android SDK Platform 37 (the app compiles against 37 and targets 36)
- Optional: your own TMDB API key (v3 auth) from your TMDB account settings
git clone https://github.com/halilozel1903/AndroidTVMovieParadise.git
cd AndroidTVMovieParadiseA shared demo key is bundled in app/build.gradle, so the app works straight after cloning. It is rate-limited and shared by everyone who builds the project, so use your own key for anything beyond trying the app out. Add it to local.properties in the project root (the file is git-ignored; see local.properties.example):
TMDB_API_KEY=your_tmdb_v3_api_keyAlternatively, pass it as a Gradle property (-PTMDB_API_KEY=...) or as a TMDB_API_KEY environment variable. Any of these overrides the bundled key at build time.
./gradlew assembleDebugadb install -r app/build/outputs/apk/debug/app-debug.apkRun it on an Android TV emulator or device; the app is listed under the Leanback launcher only.
| Task | Command |
|---|---|
| Debug build | ./gradlew assembleDebug |
| Unit tests | ./gradlew testDebugUnitTest |
| Lint | ./gradlew lintDebug |
| Release build (R8 + resource shrinking) | ./gradlew assembleRelease |
The release build is minified and unsigned; add your own signingConfig before distributing it.
GitHub Actions runs the debug build, unit tests and lint on every push and pull request (workflow). An optional TMDB_API_KEY repository secret overrides the bundled key in CI builds.
| Application ID | com.halil.ozel.movieparadise |
| Version | 1.6 (versionCode 6) |
| Min SDK | 24 (Android 7.0) |
| Target SDK | 36 |
| Compile SDK | 37 |
| Endpoint | Used for |
|---|---|
/movie/{list} |
Home rows: now playing, top rated, popular, upcoming |
/tv/{list} |
Home rows: on the air, airing today, popular, top rated |
/movie/{id}, /tv/{id} |
Details, credits, videos, recommendations, similar titles, watch providers |
/search/movie |
Search |
/discover/movie |
Genre grid |
/person/{id} |
Biography, images, movie and TV credits |
API reference: https://developer.themoviedb.org/docs
This product uses the TMDB API but is not endorsed or certified by TMDB.
- How to develop an Android TV app
- Android TV developer guide
- Leanback library reference
- Building an Android TV app
If this project helped you, you can buy me a coffee.
Released under the MIT License. Copyright (c) 2023 Halil OZEL.












