/WordpressReader

Android JSON API WordPress Reader App

Primary LanguageJava

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.