https://github.com/raimonizard/android-studio-recycler-view-example
Projecte d'exemple d'una app realitzada amb Android Studio amb Kotlin i JetPack compose per il·lustrar els components Lazy* antigament anomenats RecyclerView.
https://github.com/raimonizard/android-studio-recycler-view-example
Last synced: about 1 year ago
JSON representation
Projecte d'exemple d'una app realitzada amb Android Studio amb Kotlin i JetPack compose per il·lustrar els components Lazy* antigament anomenats RecyclerView.
- Host: GitHub
- URL: https://github.com/raimonizard/android-studio-recycler-view-example
- Owner: raimonizard
- Created: 2025-01-16T18:34:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-06T11:08:08.000Z (over 1 year ago)
- Last Synced: 2025-03-06T12:22:48.389Z (over 1 year ago)
- Language: Kotlin
- Size: 1.61 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android App with RecyclerView -> Lazy* Components
## Android Studio Version
Android Studio Ladybug Feature Drop | 2024.2.2
## Language
Kotlin with JetPack Compose
## Purpose
This app is a demo of the use of **Lazy Components**.
## Branch
- Currently the branch `basic` is fully functional and it can be used in order to test different Lazy Components situations.
---
# Gradle dependencies
If you want to expand the current project and include MVVM pattern, which is already in place through the packages, it is necessary to add the following dependencies in the file [`app/build.gradle.kts`](app/build.gradle.kts):
``` bash
dependencies {
//This dependency provides the core components for using LiveData, ViewModel, and other lifecycle-aware components in your Android app. It's essential for implementing the MVVM architecture.
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
//This dependency is crucial for observing LiveData objects within your Compose UI. It provides the observeAsState() function, which allows you to convert LiveData values into Compose state, enabling your UI to automatically update when the LiveData changes. Explanation:
implementation("androidx.compose.runtime:runtime-livedata:1.7.5")
}
```
# Screenshot
## branch basic:

## branch main:


---
# References
- [Android Developers](https://developer.android.com/develop/ui/compose/lists?hl=es-419)
- [Medium](https://medium.com/@vivekbansal19/optimizing-lazy-list-in-jetpack-compose-best-practices-8da06a5dd472)
- [Medium](https://medium.com/@GiftWorthSharing/make-component-below-lazy-column-row-in-jetpack-compose-dfb91596030e)
- [Droidcon](https://www.droidcon.com/2024/01/03/mastering-lazy-lists-in-jetpack-compose-with-data-classes-and-mvi/)