项目作者: annazhang2002

项目描述 :
Flixster is an Android movie listing app using the Movie Database API where users can view popular movies as well as watch trailers and read reviews.
高级语言: Java
项目地址: git://github.com/annazhang2002/Flixster.git
创建时间: 2020-06-24T15:59:36Z
项目社区:https://github.com/annazhang2002/Flixster

开源协议:

下载


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: 18 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 Butterknife 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] Added a play button over the backdrop image on the details screen to single to the user they can tap for a video
  • [X] Created a secrets.xml file to store the API keys
  • [X] Created landscape display for the details screen that shows the portrait image
  • [X] Only show the play button and allow the video to play only if the site is YouTube and the video key is valid
  • [X] Added release date to the details screen
  • [X] Added genres onto details screen
  • [X] Shows the number of reviews on the movie; if it is zero, tells the user there are no reviews yet and doesn’t show the vote average
  • [X] Used custom comparator to sort the now playing movies from highest rated to lowest rated
  • [X] Added toolbar buttons to allow user to view different movie lists (i.e. Upcoming, Now Playing, Popular)
  • [X] Added activity to allow user to look at all the reviews on the movie in a new recycler view

Video Walkthrough

Here’s a walkthrough of implemented user stories:

Walkthrough | Walkthrough

GIF created with LiceCap.

Notes

It was challenging at first to really get the hang of using and understanding the RecyclerView and the Adapters, but after I did more practice with the Reviews I created, I got a better understanding of the whole process. After completing the required stories, I had a really fun time adding a bunch of features to add more information and by calling the database more.
Additionally, I had never used APIs before, but similarly after a bit more practice, I got the hang of it and was able to not only call the now_playing list, but also others like upcoming and get reviews.

Open-source libraries used

  • Android Async HTTP - Simple asynchronous HTTP requests with JSON parsing
  • Glide - Image loading and caching library for Android

License

  1. Copyright [2020] [Anna Zhang]
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.