The Movie Database Example

Last update: Jun 9, 2022

The Movie Database Example

Introduction

  • This is a sample application that build with combine use Clean Architecture framework and Movie Database API (https://www.themoviedb.org/documentation/api) for request and showing the information
  • This is an update from v1 sample with using Hilt and Coroutines replace for Dagger v2 and RxJava.

User interface

The UI will have two parts: Home screen and Movie detail screen as images below.

Home screen

UI

Movie detail screen

UI

How to build

Framework

This example use Clean Architecture approach for build project. (https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)

Data-Flow

Structure

Work-Flow

Structure

Libraries

  • Foundation - Components for core system capabilities, Kotlin extensions and support for multidex and automated testing.
    • AppCompat - Degrade gracefully on older versions of Android.
    • Android KTX - Write more concise, idiomatic Kotlin code.
    • Test - An Android testing framework for unit and runtime UI tests.
  • Architecture - A collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.
    • Data Binding - Declaratively bind observable data to UI elements.
    • Lifecycles - Create a UI that automatically responds to lifecycle events.
    • LiveData - Build data objects that notify views when the underlying database changes.
    • Navigation - Handle everything needed for in-app navigation.
    • Room - Access your app's SQLite database with in-app objects and compile-time checks.
    • ViewModel - Store UI-related data that isn't destroyed on app rotations. Easily schedule asynchronous tasks for optimal execution.
    • WorkManager - Manage your Android background jobs.
  • UI - Details on why and how to use UI Components in your apps - together or separate
  • Third party
    • Glide for image loading
    • Kotlin Coroutines for managing background threads with simplified code and reducing needs for callbacks
    • Hilt for dependencies injection
    • Retrofit Type-safe HTTP client for Android
    • EasyPermission is a wrapper library to simplify basic system permissions logic when targeting Android M or higher.
    • CircleImageView a fast circular ImageView perfect for profile images.

License

Copyright 2017 The Android Open Source Project, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.

GitHub

https://github.com/hungan1409/The-Movie-Database-Clean-Architecture-v2
You might also like...

A simple movie app, built using leanback.

A simple movie app, built using leanback.

leancorn A simple movie app using Leanback ๐ŸŽฅ Demo Kapture.2021-10-10.at.16.02.48.mp4 ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป Tech Stack What? How? Architecture MVVM Navigation Jetpa

Aug 6, 2022

Android Mobile Application for Movie Reservation System.

Android Mobile Application for Movie Reservation System.

Movie-Reservation-Android-App Android Mobile Application for Movie Reservation System Brief Description of the Project ๐Ÿ‘‡ โ€œBlueSky Cinemaโ€ is an onlin

Oct 10, 2021

A android application to create personalise movie list

WatchBox An android app to create personalize list of Movie or TvSeries API Free API is used from https://www.omdbapi.com/ to fetch movie list Archite

Oct 19, 2021

App para consumir The Movie DB

App para consumir The Movie DB

AppTheMovie The app contains an Movies module, Images and a Locations module, the locations update every 30 minutes, the api The Movies DB was integra

Oct 23, 2021

Catalog Movie App

Catalog Movie Catalog Movie App Getting Started Application Prerequisites Tools Sofware Android Studio at least version 4.1. Android Studio JRE (Java

Jul 28, 2022

Android Application built using MVVM + Retrofit + Hilt + Clean + Room to shown several movies from "The Movie DB" platform.

Android Application built using MVVM + Retrofit + Hilt + Clean + Room to shown several movies from

MovieHunter Android Application built using MVVM + Retrofit + Hilt + Clean + Room to shown several movies from "The Movie DB" platform. Contribution I

Nov 10, 2021

๐Ÿ“บ๏ธ Recommend movies and get movie details.

 ๐Ÿ“บ๏ธ Recommend movies and get movie details.

MovieDB ๐Ÿ“บ๏ธ Recommend movies and get movie details. Preview MovieList Detail What I used name function ๐ŸŒฑ retrofit2 send api request Glide The path of

Mar 6, 2022

An application that displays information about movies getting from The Movie DB

An application that displays information about movies getting from The Movie DB

Movie Project Part One - Display and Search Movie. Create an application that displays information about movies getting from The Movie DB.The movie in

Nov 13, 2021

Netflex - Movie app for android

Netflex - Movie app for android

Netflex - Movie app for android Netflex is a movie app for android phones, which has a functionality to fetch top rated or popular movies from the TMD

Nov 16, 2021
Tv-Movie - Android application Tv&Movie that uses TMDB API
Tv-Movie - Android application Tv&Movie that uses TMDB API

Tv&Movie This is an android application that shows lists of popular movies, popu

Mar 23, 2022
Movie Info - MovieInfo app that recieves popular movies and allow the user to search for specific movie through the restapi
Movie Info - MovieInfo app that recieves popular movies and allow the user to search for specific movie through the restapi

Movie_Info MovieInfo app that recieves popular movies and allow the user to sear

Jun 8, 2022
Tmdb - An Android app which displays data from The Movie Database API
Tmdb - An Android app which displays data from The Movie Database API

TMDB - The Movie Database This is my first android app! This project is an Andro

Jun 8, 2022
Github-Api-Pagination-Example - Pagination 3 Example using Github Api

Github-Api-Pagination Pagination 3 Example using Github Api Tech Stack 100% Kotl

Jan 10, 2022
:movie_camera: Movie discovery app showcasing Android best practices with Google's recommended architecture: MVVM + Repository + Offline support + Android Architecture Components + Paging library & Retrofit2.
:movie_camera: Movie discovery app showcasing Android best practices with Google's recommended architecture: MVVM + Repository + Offline support + Android Architecture Components + Paging library & Retrofit2.

Popular Movies Stage 1 + Stage 2 Discover the most popular and top rated movies playing. Movies data fetched using themoviedb.org API. โœจ Screenshots M

Aug 6, 2022
๐ŸŽฌ A demo project for The Movie DB based on Kotlin MVVM architecture and material design & animations.
๐ŸŽฌ A demo project for The Movie DB based on Kotlin MVVM architecture and material design & animations.

TheMovies A simple project for The Movie DB based on Kotlin MVVM clean architecture and material design & animations. How to build on your environment

Aug 5, 2022
Movie discovery app showcasing MVP, RxJava, Dagger 2 and Clean Architecture
Movie discovery app showcasing MVP, RxJava, Dagger 2 and Clean Architecture

MovieGuide ?? Refactoring in progress ??โ€โ™€๏ธ โ› ?? ??๏ธ ?? ?? ?? Comments and new issues are welcome. ?? Currently not accepting external PRs that touch

Aug 13, 2022
Movie Search App - using Flow, Suspend Function, AAC ViewModel, Dagger Hilt and so on.
Movie Search App - using Flow, Suspend Function, AAC ViewModel, Dagger Hilt and so on.

Movie Search App - using Flow, Suspend Function, AAC ViewModel, Dagger Hilt and so on.

Mar 19, 2022
๐ŸŽฌ A demo project using The Movie DB based on Kotlin MVVM architecture and material design & animations.
๐ŸŽฌ A demo project using The Movie DB based on Kotlin MVVM architecture and material design & animations.

TheMovies2 A simple project using The Movie DB based on Kotlin MVVM architecture and material designs & animations. How to build on your environment A

Aug 11, 2022