Giter Club home page Giter Club logo

wordpressreader's Introduction

WordPress Reader

A proof of concept app to demonstrate Google's Volley library, asynchronous HTTP request and WordPress JSON API.

Features

  • Asynchronous HTTP request
  • AppCompat Material Design
  • Collapsing Toolbar with CoordinatorLayout
  • RecyclerView and CardView
  • ViewPager
  • Pull to refresh
  • Nested fragments
  • JSON parsing
  • Android Wear notification (in case you want to read an article on your watch for god-knows-what reason)

About

I recently came across a project to turn a WordPress site into a news reader app. After a bit of research, I ended up finding several paid services to do exactly that. With little luck finding an adequate free one, I decided to write my own. And this is the direct result of that.

The entire GUI is dynamically created based on post categories JSON data at run-time. It then loads posts page by page to fill the ListView. Post content is parsed and loaded into a WebView with proper styling when needed.

PS: This is still a work in progress. More features are coming soon, probably...

Requirements

Remember to set your own WordPress URL in Config.java before trying it out.

I used Disqus commenting system to remedy the spamming issue. So you will need to have Disqus installed on your WordPress site as well. If you want to use WordPress's own comment function, you need to modify the code to read comments from API instead of rendering a Disqus webpage.

Todos

  1. Use RecyclerView and CardView
  2. Add collapsing Toolbar
  3. Switch to OkHttp

Known Issues

Wrapping WebView with a NestedScrollView caused some strange problems. All known issues have been resolved.

Feel free to raise an issue if you find any.

Screenshots

Main GUI

Main GUI

Article expanded

Article with expanded Toolbar

Article collapsed

Article with collapsed Toolbar

Comments

Comments

Search

Search

Android Wear

Android Wear

License

Copyright DeclanGao © 2015.

Licensed under GPL v3 License.

wordpressreader's People

Watchers

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