Code Monkey home page Code Monkey logo

newsapp2's Introduction

Android News App

This is an Android news application built using the MVVM architecture pattern and Jetpack libraries such as Navigation Component, Room API, Pagination3, Retrofit, Glide, and OkHttp. The app fetches news articles from the NewsAPI and displays them in a clean and organized manner.

Screenshots

Please find below some screenshots of the app:

ezgif com-resize (2) ezgif com-resize ezgif com-resize (3)

Features

  • Browse news articles from various categories, such as business, entertainment, general, health, science, sports, and technology.
  • Read full articles within the app, with the option to open the article in the devices default browser.
  • Save articles to read later, even without internet connectivity.
  • Search for news articles by keyword.

Libraries Used

  • AndroidX - Android support library.
  • ViewModel - Architecture component for managing UI-related data.
  • Flow - Architecture component for building lifecycle-aware applications.
  • Room - Persistence library for SQLite databases.
  • Navigation Component - AndroidX library for managing navigation between destinations.
  • Retrofit - HTTP client for Android and Java.
  • OkHttp - HTTP client that supports HTTP/2 and allows for interceptors and network event logging.
  • Glide - Image loading library for Android.
  • Pagination3 - AndroidX library for paginating data in a RecyclerView.

Architecture

The app follows the MVVM architecture pattern, where the ViewModel acts as the mediator between the View and the Model. The View contains the UI logic, while the Model contains the business logic and data access code. The ViewModel fetches data from the Model and exposes it to the View, and also updates the Model with user input from the View.

How to Build

To build the app, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the project in Android Studio.
  3. Build the project using the Gradle build system.
  4. Run the app on an Android device or emulator.

newsapp2's People

Contributors

usmanfani avatar

Stargazers

 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.