Skip to content

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

Notifications You must be signed in to change notification settings

S-H-U-R-A/FotosMarte-Use-Databinding-LiveData-Viewmodel-Retrofit-Moshi-BindingAdapter-MockWebServer-RecyclerVi

Repository files navigation

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.

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages