项目作者: rolandsarosy

项目描述 :
Using REST API calls (Retrofit) and material components to create a simple material news app with The Guardian's developer API
高级语言: Java
项目地址: git://github.com/rolandsarosy/The-Guardian-API.git
创建时间: 2018-07-20T11:35:10Z
项目社区:https://github.com/rolandsarosy/The-Guardian-API

开源协议:

下载


The Guardian API

This app display a list of relevant news items and their related information in a Material Design user interface.
The data is gathered from the The Guardian API endpoint.
The network calls are made with Retrofit 2 and the JSON parsing is done with GSON.
Parts of the user interface are created with the Material Components Library

Pre-requisites and build information

  • Android SDK v28
  • Android Build Tools v28
  • Target SDK version: 28
  • Min SDK version: 19 (4.4 KitKat)

Libraries

The following libraries are used in this project:

  • AndroidX AppCompat 1.0.0 Beta
  • AndroidX ConstraintLayout
  • AndroidX ConstraintLayout 1.1.2
  • AndroidX CoordinatorLayout 1.0.0 Beta
  • Retrofit 2
  • GSON

Implemented features

This segment is a work in progress as of 2018.07.25
Please check back in a few days for a (more) completed list.

  • Models
  • API service
  • Material Components CardView layout
  • Bottom app bar with menu items
  • Detect network states and respond accordingly
  • Navigation drawer to let the user select specific topics of news items

Planned features

  • Caching and offline mode
  • Room database layer
  • Proper search and query options (currently being implemented)
  • Improved transitions
  • Option to save news items

Getting Started

This sample uses the Gradle build system. To build this project, use the
“gradlew build” command or use “Import Project” in Android Studio.

Support and inquires

Suggestions and feature ideas are welcome. Reach out to any of the aforementioned social media links :)

Patches are encouraged, and may be submitted by forking this project and
submitting a pull request through GitHub.