Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitulagr2/marsphotos
See actual images of Mars' surface captured by NASA's Mars rovers.
https://github.com/mitulagr2/marsphotos
jetpack-compose kotlin
Last synced: 26 days ago
JSON representation
See actual images of Mars' surface captured by NASA's Mars rovers.
- Host: GitHub
- URL: https://github.com/mitulagr2/marsphotos
- Owner: mitulagr2
- License: apache-2.0
- Created: 2024-02-20T13:29:57.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-05-02T19:50:39.000Z (10 months ago)
- Last Synced: 2024-11-16T23:18:31.578Z (3 months ago)
- Topics: jetpack-compose, kotlin
- Language: Kotlin
- Homepage:
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Mars Photos
==================================Mars Photos app is a demo app that shows actual images of Mars' 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.This app demonstrated the use of [Retrofit](https://square.github.io/retrofit/) to make REST requests to the web service, [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization) to
handle the deserialization of the returned JSON to Kotlin data objects, and [Coil](https://coil-kt.github.io/coil/) to load images by URL.Pre-requisites
--------------You need to know:
- How to create Composable functions.
- How to use architecture components including ViewModel.
- How to use coroutines for long-running tasks.
- Familiarity with lazy gridGetting Started
---------------1. [Install Android Studio](https://developer.android.com/studio/install.html), if you don't already
have it.
2. Download the sample.
3. Import the sample into Android Studio.
4. Build and run the sample.## [Build this app through hands-on codelabs in the Android Basics with Compose Course](https://developer.android.com/courses/android-basics-compose/course)
### [Get data from the internet](https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet)
Learn how to use community-developed libraries to connect to a web service to retrieve and display data in your Android Kotlin compose app.### [Add repository and Manual DI](https://developer.android.com/codelabs/basic-android-kotlin-compose-add-repository)
Learn how to improve the architecture of the app by separating the network calls into a repository.### [Load and display images from the internet](https://developer.android.com/codelabs/basic-android-kotlin-compose-load-images)
Use the Coil library to load and display photos from the internet in your Android Compose app.