Giter Club home page Giter Club logo

mvp_retrofit_weatherreport's Introduction

Darksky WeatherReport Using MVP architecture

The main purpose of this app is retrieving Weather Report from https://api.darksky.net/ using Retrofit for doing HTTP request & GSON lib for parsing.

rsz_device-2019-09-24-140104 rsz_1device-2019-09-24-140104

Dependencies

def retrofit_version = "2.6.2";

implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
   

Android MVP Architecture

Home Page

  • Model: This handles the data part of our application
  • Presenter: It acts as a bridge that connects a Model and a View.
  • View: This is responsible for laying out views with the relevant data as instructed by the Presenter

Android MVP Guidelines

  • Activity, Fragment and a CustomView act as the View part of the application.
  • The Presenter is responsible for listening to user interactions (on the View) and model updates (database, APIs) as well as updating the Model and the View.
  • Interfaces need to be defined and implemented to communicate between View-Presenter and Presenter-Model.
  • The View and Model classes can’t have a reference of one another.

mvp_retrofit_weatherreport's People

Contributors

dilip786 avatar locusalpha avatar

Watchers

James Cloos avatar  avatar

mvp_retrofit_weatherreport's Issues

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.