Skip to content

Repository files navigation

Simple API Android App

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

Architecture

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

Features

  • 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

Dependencies

  • Jetpack Compose for UI
  • Retrofit for API calls
  • Moshi for JSON parsing
  • Kotlin Coroutines and Flow for async operations
  • ViewModel for state management

Getting Started

  1. Clone the repository
  2. Open the project in Android Studio
  3. Build and run the app on an emulator or physical device

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages