/BestShows

Consuming API.

Primary LanguageKotlin

BestShows

Consuming API.

  • Create a new App with empty activity

  • Add depencencies and plugins

  • Create the package folder structure

    • app
    • data -inside data create remote and model packages
    • di
    • repo
    • ui
      • inside the ui add the detail and activities
    • util
  • Create the constants in the util packge

  • create classes in the model from JSON you get from the remote end point

  • create the Api inteface class inside the remote

  • create application class in side the app

  • crea a module class in the di

  • Create the repository class inside the repo

  • inside the ui

  • create the layour file to show the cards using cardview with shildren

    • Cardview
      • linearlayout constraint layout imageview textview -Create the adapter make sure to enable viewBinding in the build.gradle app level
  • Create viewmodel

adjust the activity main xml