QuotesApp

Complete Android Quotes App | ViewModel Architecture

  • This app shows the use of ViewModel and ViewModelFactory Concept

  • Learn about ViewModels by creating this simple app.

  • App uses static data provided as JSON.

    ****** USE YOUR CURRENT VERSION OF JDK & SDK ******

Requrements :

  1. Use this extra Dependencies to your build.gradle(:app) file

    // For ViewModel

    def lifecycle_version = “2.2.0” implementation “androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version”

    // For gson Library

    implementation ‘com.google.code.gson:gson:2.8.6’

  2. The JSON API link : https://type.fit/api/quotes

Screen Shot 2022-05-20 at 12 44 08 AM

GitHub

View Github