Create an Android application that fetches fake posts data from a remote API and displays them in a RecyclerView. Implement navigation to a second screen to display post details.
- Fetch fake posts data from JSONPlaceholder API.
- Display posts in a RecyclerView.
- Implement onItemClick functionality to navigate to a second screen displaying post details.
- Handle network calls and manage successful & unsuccessful responses.
- Use Dagger Hilt for dependency injection.
- Utilize RecyclerView with DiffUtil to efficiently display data.
- Implement clean architecture principles for project structure.
- Kotlin
- XML for UI design
- Dagger Hilt for dependency injection
- Retrofit for network calls
- RecyclerView with DiffUtil
- app: Contains main application code.
- data: Contains data-related classes such as data models and repository.
- domain: Contains business logic and use cases.
- presentation: Contains UI-related classes including ViewModels and UI states.
- di: Contains Dagger Hilt related classes for dependency injection.
- Clone the project from GitHub repository.
- Open the project in Android Studio.
- Build and run the application on an Android device or emulator.