# matheus0liveira/android-netflix-remake architecture

> Architecture diagram of the GitHub repository matheus0liveira/android-netflix-remake, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/matheus0liveira/android-netflix-remake
- Repository: https://github.com/matheus0liveira/android-netflix-remake

## Overview

##### Project type and purpose
- This is a native Android client app (“Netflix Remake”) that displays movie categories, lists, and details by fetching JSON data and images from a remote API. It is a single-module mobile application without a separate backend in this codebase.

##### File structure
- Top-level:
- app/: Android Gradle module
– src/main/java/co/tiagoaguiar/netflixremake: Activities (SplashActivity, MainActivity, MovieActivity), Adapters (CategoryAdapter, MovieAdapter), model classes (Category, Movie, MovieDetail), util tasks (CategoryTask, MovieTask, DownloadImageTask)
– src/main/res: layouts, drawables, raw (splash.json), values
– src/androidTest & src/test: instrumentation + unit tests
– build.gradle, settings.gradle, gradle wrapper files

- Architectural clues:
- Activities act as controllers/views
- Adapters manage RecyclerView items
- util/*.kt handle network + image downloads asynchronously
- model/*.kt are plain data holders
- No local database or DI framework

##### README for additional insights
- Confirms “Netflix Remake android app”
- Demo shows category list, movie list, detail screen

##### Final recommendations
- Be exhaustive: include every Activity, Task, and data flow
- Asynchronous flow: Tasks return callbacks to Activities
- This ensures a detailed, accurate view of the Netflix Remake Android client architecture.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Android App"
        subgraph "UI Layer"
            SA["SplashActivity"]:::ui
            MA["MainActivity"]:::ui
            MoA["MovieActivity"]:::ui
            CA["CategoryAdapter"]:::ui
            MoAd["MovieAdapter"]:::ui
        end
        subgraph "Data Layer"
            CT["CategoryTask"]:::data
            MT["MovieTask"]:::data
            DIT["DownloadImageTask"]:::data
        end
        subgraph "Models"
            C["Category"]:::model
            M["Movie"]:::model
            MD["MovieDetail"]:::model
        end
        subgraph "Resources"
            SJSON["splash.json"]:::resource
            LayoutSplash["activity_splash.xml"]:::resource
            LayoutMain["activity_main.xml"]:::resource
            LayoutMovie["activity_movie.xml"]:::resource
            LayoutCategory["category_item.xml"]:::resource
            LayoutMovieItem["movie_item.xml"]:::resource
            LayoutSimilar["movie_item_similar.xml"]:::resource
            Drawables["Drawables & Icons"]:::resource
        end
    end

    ExternalAPI["Remote Movie API"]:::external

    %% UI flows
    SA -->|reads splash.json| SJSON
    SA -->|renders| LayoutSplash
    SA -->|launches| MA

    MA -->|renders| LayoutMain
    MA -->|invokes| CT
    MA -->|invokes| MT
    MA -->|binds| CA
    MA -->|binds| MoAd
    MA -->|loads images| DIT

    CA -->|maps to| C
    MoAd -->|maps to| M
    MoAd -->|onClick| MoA

    MoA -->|renders| LayoutMovie
    MoA -->|invokes| MT
    MoA -->|loads images| DIT

    %% Data layer to External API
    CT -->|GET /categories| ExternalAPI
    MT -->|GET /movies and details| ExternalAPI
    DIT -->|GET images| ExternalAPI

    %% Data to Models
    CT -->|parses into| C
    MT -->|parses into| M
    MT -->|parses into| MD

    %% Click Events
    click SA "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/SplashActivity.kt"
    click MA "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/MainActivity.kt"
    click MoA "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/MovieActivity.kt"
    click CA "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/CategoryAdapter.kt"
    click MoAd "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/MovieAdapter.kt"
    click CT "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/util/CategoryTask.kt"
    click MT "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/util/MovieTask.kt"
    click DIT "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/util/DownloadImageTask.kt"
    click C "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/model/Category.kt"
    click M "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/model/Movie.kt"
    click MD "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/java/co/tiagoaguiar/netflixremake/model/MovieDetail.kt"
    click SJSON "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/raw/splash.json"
    click LayoutSplash "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/layout/activity_splash.xml"
    click LayoutMain "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/layout/activity_main.xml"
    click LayoutMovie "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/layout/activity_movie.xml"
    click LayoutCategory "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/layout/category_item.xml"
    click LayoutMovieItem "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/layout/movie_item.xml"
    click LayoutSimilar "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/layout/movie_item_similar.xml"
    click Drawables "https://github.com/matheus0liveira/android-netflix-remake/tree/main/app/src/main/res/drawable/"
    click Drawables "https://github.com/matheus0liveira/android-netflix-remake/tree/main/app/src/main/res/drawable-v24/"
    click Drawables "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/mipmap-hdpi/ic_launcher.xml"
    click Drawables "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/mipmap-mdpi/ic_launcher.xml"
    click Drawables "https://github.com/matheus0liveira/android-netflix-remake/blob/main/app/src/main/res/mipmap-xhdpi/ic_launcher.xml"

    %% Styles
    classDef ui fill:#cce5ff,stroke:#4da3ff,stroke-width:1px
    classDef data fill:#ffe5cc,stroke:#ff9933,stroke-width:1px
    classDef model fill:#e5ffcc,stroke:#80cc33,stroke-width:1px
    classDef resource fill:#f2f2f2,stroke:#d9d9d9,stroke-width:1px
    classDef external fill:#dddddd,stroke:#aaaaaa,stroke-width:1px
```
