A beautiful Jetpack Compose app that displays popular movies using The Movie Database (TMDb) API. Users can watch trailers, search movies, and mark favorites — all with a Material 3 UI.
- 🔥 Browse trending/popular movies
- 🔍 Search by movie title
- 🎥 Watch trailers via embedded YouTube or ExoPlayer
- ❤️ Mark/unmark movies as favorites
- 💾 Persistent favorites using SharedPreferences (DataStore optional)
- 🎨 Fully styled with Material 3 and dark theme
- 📦 Built using Jetpack Compose, Retrofit, Coil, and ExoPlayer
Add your screenshots here!
- Jetpack Compose UI
- Material 3 Design Components
- Retrofit2 + Gson – API calls
- Coil – image loading
- ExoPlayer – in-app video playback
- SharedPreferences – persistent favorites
- Navigation Compose (optional)
- TMDb API – movie data
-
Get a free API key from TMDb
-
Open the project in Android Studio
-
In
MovieViewModel.kt, replace:private val apiKey = "YOUR_API_KEY"