Code Monkey home page Code Monkey logo

android-mvvm-hilt-blog-app's Introduction

Android Blog Reading App [MVVM & Hilt]

Welcome to the Android MVVM+Hilt Blog Reading App repository! This project is a hands-on example of building a Blog Reading App using the Model-View-ViewModel (MVVM) architectural pattern and Dagger-Hilt dependency Injection. Dive into this practical project to enhance your Android development skills and get a taste of what you'll learn in the Android Dependency Injection with Hilt Course (Bengali). You can watch the course introduction and outline from here.

mvvm_app_demo.mp4

Table of Contents

Project Overview

The Android MVP Blog Reading App showcases how to structure and build an Android app using MVVM architecture with Dependency Injection Hilt. As you explore this repository, you'll gain practical insights into clean code, separation of concerns, and best practices in Android app development.

Features

This app showcases various features related to reading blogs, including:

Getting Started

To get started with the project, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/hasancse91/android-mvvm-hilt-blog-app.git
  2. Open the project in Android Studio.

  3. Build and run the app on an emulator or physical device.

MVVM Architecture

The key components of the MVVM architecture include:

  • Model: Represents the data and business logic of the app.
  • View: Displays the UI and handles user input.
  • ViewModel: Acts as an intermediary between the Model and View, handling business logic and updating the observable field. Which observable field is being observed by View.

The MVVM architecture brings several benefits, including improved code maintainability, separation of concerns, and testability. Specially it overcomed the limitations of MVP architecture like: ViewModel reusability issue, lifecycle handle issue etc.

Hilt Implementation

  • Refactoring the MVVM project
  • Adding dependencies for Hilt
  • Annotate Application class using @HiltAndroidApp
  • Create @Module
  • Bind repository
  • Make Activity class as @AndroidEntryPoint
  • Prepare ViewModel for injection field

Thank you for exploring the Android Blog Reading App project! If you have any questions or suggestions, please feel free to reach out.

Happy coding!

android-mvvm-hilt-blog-app's People

Contributors

hasancse91 avatar

Stargazers

Shibu Barman avatar Shadik Faysal  avatar Saidur Rahman avatar Syed Bipul Rahman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.