Material – Part 7

December 12th, 2014

In the previous article we began looking at how RecyclerView makes life an awful lot easier when dragging list items to alter their position. We looked at how we can generate a bitmap of the view that we want to drag, and promote it to an overlay layer so that we can move it around easily. In this article we’ll look at dynamically moving the other items in the list automatically as we drag.
Read the rest of this entry »

Material – Part 6

December 5th, 2014

Previously in this series we have applied basic Material design to a simple RSS reader app, and most recently we converted our ListView to the new RecyclerView. However, at the conclusion of the previous article, we had completed this migration but the net result in terms of UI was zero – the behaviour was exactly the same. This begs the question: “So why bother?” In this article we’ll look at dragging items in the list to change their order (which is not impossible, but can be pretty tricky using ListView), and see how much easier it is using RecyclerView.
Read the rest of this entry »

Material – Part 5

November 28th, 2014

The the previous article we began the migration from ListView to RecyclerView by moving our Adapter implementation to RecyclerView.Adapter. In this article we’ll complete the migration and also find one small, but easily resolved problem along the way.
Read the rest of this entry »

Material – Part 4

November 21st, 2014

Previously in this series we’ve looked at applying some aspects of Material design to our simple RSS app. In this article we’re going to look at replacing our ListView implementation with RecyclerView. While this won’t have any effect of the user, it will be an enabler which will allow us to apply some more material goodness which would be difficult to achieve with ListView.
Read the rest of this entry »

Material – Part 3

November 14th, 2014

In the previous article we applied a colour scheme to our RSS reader app using the appcompat library. In this article we’ll look at styling our text and also take a look at CardView.
Read the rest of this entry »

Material – Part 2

November 7th, 2014

In the previous article we got a simple app working which is a simple RSS viewer showing a list of recent Styling Android posts, and a detail view when you click on them. In this article we’ll look at applying some material design principles to the app and also try and make it backwards compatible using the appcompat library.
Read the rest of this entry »

Material – Part 1

October 31st, 2014

At the time of writing, the full Lollipop SDK has just been released including new versions of the support libraries which provide some backwards compatibility for implementing material design in to older apps. In this series we’ll take a look at how we can actually apply this to an app.
Read the rest of this entry »

Palette – Part 4

October 24th, 2014

When originally written this series concluded at the end of the previous article but, on the day that article was published, the full Lollipop SDK was released which included the full release of the Palette library. The Palette API which shipped with Lollipop changed slightly from the one which was released as part of the Android-L developer preview, so in this article we’ll look at the changes and update the code from Palette – Part 2 to work with the full released library.
Read the rest of this entry »

Palette – Part 3

October 17th, 2014

Previously in this series we’ve looked at how to use the new Palette library and in this concluding article in the series we’ll take a look at the types of color values which we can expect from Palette.
Read the rest of this entry »

Palette – Part 2

October 10th, 2014

In the previous article we began looking at the new Palette library which was introduced as part of the Android-L developer preview (but will be available in a support library with compatibility back to API 7) which enables us to extract colour information from bitmaps. We got our image loading working so we’l now turn our attention to extracting the colour information from the image
Read the rest of this entry »