yoavgray / flixter-codepath-1

This app uses The Movie Database API to show movies that are now playing in cinemas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project 1 - Flixter

Flixter 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: 23 hours spent in total

User Stories

The following required functionality is completed:

  • User can scroll through current movies from the Movie Database API
  • Layout is optimized with the ViewHolder pattern.
  • For each movie displayed, user can see the following details:
    • Title, Poster Image, Overview (Portrait mode)
    • Title, Backdrop Image, Overview (Landscape mode)

The following optional features are implemented:

  • User can pull-to-refresh popular stream to get the latest movies.
  • Display a nice default placeholder graphic for each image during loading.
  • Improved the user interface through styling and coloring.

The following bonus features are implemented:

  • Allow user to view details of the movie including ratings and popularity within a separate activity or dialog fragment.
  • When viewing a popular movie (i.e. a movie voted for more than 5 stars) the video should show the full backdrop image as the layout. Uses Heterogenous ListViews or Heterogenous RecyclerView to show different layouts.
  • Allow video trailers to be played in full-screen using the YouTubePlayerView.
    • Overlay a play icon for videos that can be played.
    • More popular movies should start a separate activity that plays the video immediately.
    • Less popular videos rely on the detail page should show ratings and a YouTube preview.
  • Apply the popular Butterknife annotation library to reduce boilerplate code.
  • Apply rounded corners for the poster or background images using Picasso transformations
  • Replaced android-async-http network client with the popular OkHttp or Volley networking libraries.

The following additional features are implemented:

  • List anything else that you can get done to improve the app functionality!
    • Use Gson library to transform JSON to a Java Object
    • If exist, show reviews for a movie and a progress bar until it is retrieved.
    • reviews are shown in a custom view that is added dynamically
    • Clicking on a review link, opens the link in a browser.
    • The app is compatible on tablets too!
    • Added animations when openning MovieDetailsActivity and returning to MovieActivity

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

The challenging part was mostly dealing with resizing images that came from Picasso, because they wouldn't listen to my commands ;)

Open-source libraries used

  • Android Async HTTP - Simple asynchronous HTTP requests with JSON parsing
  • Picasso - Image loading and caching library for Android
  • ButterKnife - View Binding for android
  • Gson - Java library that can be used to convert Java Objects into their JSON representation
  • Wasabeef - Tweak images downloaded from Piccasso!

About

This app uses The Movie Database API to show movies that are now playing in cinemas.


Languages

Language:Java 100.0%