Giter VIP home page Giter VIP logo

ia_newsapp's Introduction

I.A News App

This app shows a list of top headlines news from NewsApi.

Main features

  • Showing a list of news articles
  • A title, image, short description, and relative publish date is being displayed for every article.
  • Article Details screen shows more details about an article.
  • Draggable live streaming view (Just design without implementation)
  • Read options view (Just design without functionality)
  • Smooth animations and transitions
  • The user have the ability to search for a specific article using the search view.
  • Room database was used to save the loaded articles locally so they will be available offline.
  • Open article url in an in-app browser
  • Local articles saved in the database will be loaded when the user opens the app. a server request will be also initiated in the same time. The user will be able to see the loaded articles offline.
  • The database is the single source of truth
  • When the user rotate the screen, the user will see the same data at the same scroll position.
  • The app targets Android API 30 with minSDK 23 and using androidX

APK

IA_News.apk

Demo Video

Click here

SDKs used

  • LiveData
  • ViewModel
  • Databinding
  • Retrofit
  • Dagger 2
  • Rxjava
  • Room
  • Picasso
  • Mockito

API info (NewsApi)

GET "https://newsapi.org/v2/top-headlines"

@Query apiKey "ADD_YOUR_API_KEY"

@Query country "us"

Architecture

The app was built with a clean MVVM architecture following Android Architecture components and Android Jetpack. This is very important to make the code base more robust, testable, and maintainable in the long run.

https://developer.android.com/jetpack/docs/guide#best-practices

alt text A UseCase layer layer was added before the Repository layer.

I used a generic class NetworkBoundResource for loading a resource. This class can provide a resource backed by both the database and the network.

alt text

Build/Run the app

For successfully running the app, you need to add an API key for the NewsAPi on the Constants.kt file.

ia_newsapp's People

Contributors

islamassi 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.