A proof of concept app to demonstrate Google's Volley library, asynchronous HTTP request and WordPress JSON API.
- 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)
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...
- Volley library (included in the project)
- A WordPress site (tested on WordPress 4.x)
- JSON API WordPress plugin
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.
Use RecyclerView and CardViewAdd collapsing Toolbar- Switch to OkHttp
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.
Main GUI
Article with expanded Toolbar
Article with collapsed Toolbar
Comments
Search
Android Wear
Copyright DeclanGao © 2015.
Licensed under GPL v3 License.