A beginner-friendly Android application built with Jetpack Compose. This app demonstrates:
- Modern Android UI with Jetpack Compose
- API calls using Retrofit
- JSON parsing with Moshi
- MVVM architecture with ViewModel
- Asynchronous programming with Kotlin Coroutines
- State management with Kotlin Flows
The app follows the MVVM (Model-View-ViewModel) architecture pattern:
- Model: Data and business logic (Repository, API Service)
- View: UI components (Compose screens)
- ViewModel: Manages UI state and business logic
- Fetches data from JSONPlaceholder API
- Displays items in a LazyColumn (Compose's RecyclerView equivalent)
- Handles loading, empty, and error states
- Uses Material Design 3 components
- Jetpack Compose for UI
- Retrofit for API calls
- Moshi for JSON parsing
- Kotlin Coroutines and Flow for async operations
- ViewModel for state management
- Clone the repository
- Open the project in Android Studio
- Build and run the app on an emulator or physical device