Giter Site home page Giter Site logo

s-h-u-r-a / fotosmarte-use-databinding-livedata-viewmodel-retrofit-moshi-bindingadapter-mockwebserver-recyclervi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 246 KB

En este codelab se vio como usar Retrofit en conjunto con Moshi para recuperar data de Internet, se uso Databinding y @BindingAdapter que es la forma de crear atributos Xml a los View personalizados y que puedan comunicarse con los LiveData, ademas se uso RecyclerView con su Manager GridLayoutManager, además se hizo test con MockWebServery

License: Apache License 2.0

Kotlin 100.00%
bindingadapter databinding-android gridlayoutmanager listadapter livedata-viewmodel mockwebserver moshi recyclerview retrofit2-kotlin depuracion

fotosmarte-use-databinding-livedata-viewmodel-retrofit-moshi-bindingadapter-mockwebserver-recyclervi's Introduction

MarsPhotos - Starter Code

Starter code for Android Basics in Kotlin.

Introduction

Using this stater code you will create MarsPhotos is a demo app that shows actual images of Mar's surface. These images are real-life photos from Mars captured by NASA's Mars rovers. The data is stored on a Web server as a REST web service. The solution app will demonstrate the use of Retrofit to make REST requests to the web service, Moshi to handle the deserialization of the returned JSON to Kotlin data objects, and Coil to load images by URL.

The app also leverages ViewModel, LiveData, and Data Binding with binding adapters.

Pre-requisites

You need to know:

  • How to create and use fragments.
  • How to use architecture components including ViewModel, and LiveData.
  • How to use coroutines for long-running tasks.

Getting Started

  1. Download and run the app.

fotosmarte-use-databinding-livedata-viewmodel-retrofit-moshi-bindingadapter-mockwebserver-recyclervi's People

Contributors

s-h-u-r-a avatar

Stargazers

 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.