:movie_camera: 影片发现应用展示了 Android 最佳实践,采用了 Google 建议的架构: MVVM + 存储库 + 离线支持 + Android Archi
Popular Movies Stage 1 + Stage 2
Discover the most popular and top rated movies playing. Movies data fetched using themoviedb.org API.
✨ Screenshots
| Main Screen |
Demo |
Favorites |
|
|
|
| Movie Details |
Trailers |
Reviews |
|
|
|
Features
- Discover the most popular and the most rated movies
- User can view and play trailers on youtube
- Shows a list of reviews for each movie
- Users can mark a movie as favorite in the details view by tapping a heart icon
- Users can share movie trailers with their network
- Offline support: app makes use of
NetworkBoundResource, which uses database as the single source of truth
- Advanced uses of Room
- MVVM with Android Architecture Components(Room, LiveData, ViewModel)
- Pagination and endless scrolling using Android paging library
- Handle network status and network failures
- ConstraintLayout(guidelines, barriers... etc)
- Material design
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
- Android Studio 3.2+
- Java JDK
Installing
Follow these steps if you want to get a local copy of the project on your machine.
1. Clone or fork the repository by running the command below
bash
git https://github.com/YassinAJDI/PopularMovies.git
2. Import the project in AndroidStudio, and add API Key
- In Android Studio, go to File -> New -> Import project.
- Follow the dialog wizard to choose the folder where you cloned the project and click on open.
- Android Studio imports the projects and builds it for you.
- Add TheMovieDb API Key inside
gradle.properties file.
TMDB_API_KEY="Your API Key here"
How to Contribute
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Libraries used
License
This project is released under the MIT license.
See LICENSE for details.