Directory Structure - adrianlkc112/StackExchangeUsers GitHub Wiki

Overview

This page will briefly describe the directory structure of the project

Directory

activity

  • Activities for handle UI display on views & user interactions

adapter

  • Adapters for RecyclerView (e.g. User & User Details list view)

callback

  • Callbacks for communication between the components

enum

  • Enums

extensions

  • Codes that can be reused. Helps make overall codes cleaner and improve the readability

model

  • Data Models from API response

server

  • API calls
  • okHttpClient setup

util

  • Utilities that provide useful feature (such as Date conversion etc.)

viewData

  • Data object used for display (e.g. ListView)

viewModel

  • ViewModels which are used for store and manage UI-related data