Code Monkey home page Code Monkey logo

fetchandroidproject's Introduction

Fetch Android Project

This is a sample project for displaying items grouped by list ID in an expandable list. Each item can be expanded to view its contents.

Prerequisites

  • Android Studio
  • Kotlin plugin for Android Studio

How to Run

1. Clone the Repository:

git clone https://github.com/catchashu10/FetchAndroidProject.git

2. Open the Project in Android Studio: Start Android Studio Select “Open an existing Android Studio project” Navigate to the cloned project directory and select it.

3. Run the Application: Run Gradle Sync. After the project is opened and indexed, press the green triangular "Run" button at the top of Android Studio, or use the Shift + F10 shortcut to run the project on an emulator or connected Android device.

4. Build the APK: Go to Build menu Select Build Bundle(s) / APK(s) Select Build APK(s)

Features

  1. Displays items grouped by list ID in an expandable list.
  2. Fetches data from a remote server asynchronously.
  3. Filters out items with null or empty names.
  4. Sorts the items in ascending order based on their names within each list ID group.

Approach

  1. Data Retrieval: Using OkHttp library to perform network requests to fetch JSON data.
  2. Data Processing: Utilizing Gson for JSON parsing and Kotlin’s built-in functions for data filtering, sorting, and transformation.
  3. ExpandableView & Adapter Design: Implementing a Expandable with an Adapter that uses different view types for headers and items, allowing for the creation of expandable lists.
  4. ViewHolder Pattern: Utilizing the ViewHolder pattern within the Adapter for efficient recycling of views and reducing memory usage.
  5. User Interface Design: Employing Material Design principles for aesthetic UI representation, including appropriate layouts, colors, and fonts.

fetchandroidproject's People

Contributors

catchashu10 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.