Project 2 - Flixster
Flixster shows the latest movies currently playing in theaters. The app utilizes the Movie Database API to display images and basic information about these movies to the user.
Time spent: ~26 hours spent in total
User Stories
The following required functionality is completed:
- [x] User can scroll through current movies from the Movie Database API
- [x] Display a nice default placeholder graphic for each image during loading
- [x] For each movie displayed, user can see the following details:
- [x] Title, Poster Image, Overview (Portrait mode)
- [x] Title, Backdrop Image, Overview (Landscape mode)
- [x] Allow user to view details of the movie including ratings and popularity within a separate activity
The following stretch features are implemented:
- [x] Improved the user interface by experimenting with styling and coloring.
- [x] Apply rounded corners for the poster or background images using Glide transformations
- [x] Apply the popular View Binding annotation library to reduce boilerplate code.
- [x] Allow video trailers to be played in full-screen using the YouTubePlayerView from the details screen.
The following additional features are implemented:
- [x] List anything else that you can get done to improve the app functionality!
- Instead of using the YoutubePlayerView, which requires the app to launch a separate activity to display the video, I did some research and switched to YoutubePlayerFragment,
which allows the app to display the video within the same activity
- Allows the user to sort movies by popularity, vote_average and release_date
- Show all the reviews for the movie using themoviedb API with RecyclerView in MovieDetailsActivity
Video Walkthrough
Here's a walkthrough of implemented user stories:
https://imgur.com/a/HXOAgxt
GIF created with Kap.
Notes
Describe any challenges encountered while building the app.
- It took me time to figure how to use YoutubePlayerFragment instead of YoutubePlayerView
- It also took me time to improve and customize the UI to be "dark mode"
- Deal with various bugs including API calls, Recycler Views, etc
Open-source libraries used
- Android Async HTTP - Simple asynchronous HTTP requests with JSON parsing
- Glide - Image loading and caching library for Android
License
Copyright [2020] [LongHuy Nguyen]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.