Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aimedidierm/recyclerviewapp
Android Mobile App that fetch data from an API and display it using a RecyclerView. The app support a landscape layout on tablets.
https://github.com/aimedidierm/recyclerviewapp
android-app kotlin-android
Last synced: about 1 month ago
JSON representation
Android Mobile App that fetch data from an API and display it using a RecyclerView. The app support a landscape layout on tablets.
- Host: GitHub
- URL: https://github.com/aimedidierm/recyclerviewapp
- Owner: aimedidierm
- Created: 2024-08-07T20:39:46.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-08-10T22:25:25.000Z (6 months ago)
- Last Synced: 2024-10-31T08:43:03.410Z (3 months ago)
- Topics: android-app, kotlin-android
- Language: Kotlin
- Homepage:
- Size: 196 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ฑ RecyclerViewApp
## Instructions to Run the App
1. ๐ Clone the repository:
```bash
git clone https://github.com/aimedidierm/RecyclerViewApp.git
```
2. ๐ Open the project in VS Code or Android Studio.
- If using VS Code, make sure you have the necessary Android SDK and build tools installed.
3. ๐ ๏ธ Build the project:
- In Android Studio: Click on `Build` > `Make Project`.
- In VS Code: Use the terminal and run:
```bash
./gradlew build
```
4. ๐ฒ Run the app on an Android device or emulator:
- In Android Studio: Click on the `Run` button or press `Shift + F10`.
- In VS Code: Use the terminal and run:
```bash
./gradlew installDebug
```## ๐ Additional Libraries Used
- ๐ Retrofit for network requests
- ๐ Gson for JSON parsing
- ๐ RecyclerView for displaying lists## ๐ Assumptions and Design Decisions
- The app fetches data from the provided API endpoint and displays it in a RecyclerView.
- Clicking on an item in the list navigates to a details view that shows more information about the item.
- The app supports a landscape layout for tablets with a horizontal orientation for the RecyclerView.## ๐งช Testing the Project
1. ๐ฅ Clone the repository and navigate to the project directory:
```bash
git clone https://github.com/aimedidierm/RecyclerViewApp.git
cd RecyclerViewApp
```
2. ๐งน Clean the project and run the tests:```bash
./gradlew clean test
```This will execute all unit tests defined in the project.
3. ๐ฑ To run instrumented tests on an Android device or emulator:
```bash
./gradlew connectedAndroidTest
```Make sure an Android device or emulator is connected before running this command.
4. ๐ View the test results:
- Unit test results can be found in `app/build/reports/tests/testDebugUnitTest/`
- Instrumented test results can be found in `app/build/reports/androidTests/connected/`## ๐ ๏ธ Project Structure
```plaintext
RecyclerViewApp
โโโ app
โ โโโ build.gradle.kts
โ โโโ src
โ โ โโโ main
โ โ โ โโโ AndroidManifest.xml
โ โ โ โโโ java
โ โ โ โ โโโ com
โ โ โ โ โโโ example
โ โ โ โ โโโ recyclerviewapp
โ โ โ โ โโโ MainActivity.kt
โ โ โ โ โโโ ListViewActivity.kt
โ โ โ โ โโโ DetailsViewActivity.kt
โ โ โ โโโ res
โ โ โ โโโ layout
โ โ โ โ โโโ activity_details_view.xml
โ โ โ โ โโโ activity_list_view.xml
โ โ โ โ โโโ activity_main.xml
โ โ โ โ โโโ item_view.xml
โ โ โ โโโ values
โ โ โ โโโ xml
โ โโโ test
โ โ โโโ java
โ โ โ โโโ com
โ โ โ โโโ example
โ โ โ โโโ recyclerviewapp
โ โ โ โโโ AppTest.kt
โ โโโ resources
โโโ gradle
โ โโโ libs.versions.toml
โ โโโ wrapper
โ โโโ gradle-wrapper.jar
โ โโโ gradle-wrapper.properties
โโโ gradlew
โโโ gradlew.bat
โโโ settings.gradle.kts
```