Chris Banes

I work as a DPE in the Android Developer Relations team. This is my personal blog and any views expressed here are mine, and not my employers.

  1. Measuring Text

    If you start manually drawing things to Android's Canvas, you will probably start to draw text as well. When doing so you need to know where to position the text when you draw, and to do that you will need to measure the text before drawing it, to compute the…

    on android, androiddev, text

  2. Colour Matching - Part 2

    This post is the second part in a two part series. You can find the first post here. Carrying on from the previous post, we now have the palette of colours which make up our chosen image. The palette can be retrieved by calling getQuantizedColors() on our MedianCutQuantizer. We could…

    on android, color, ui, colour

  3. New blog... again

    Just a quick post. You may have noticed that this site has changed yet again. After my Color Matching post last week, I saw quite a few comments saying that the site was slow. The site was WordPress based with all of the standard optimizations: W3 Total Cache for static…

    on ghost, blog, wordpress

  4. Colour Matching

    Android 4.4 introduced more subtle use of colour throughout the OS and provided new guidance on using colour in your applications to provide better branding (see this episode of ADiA for more discussion). This means that the onus is now on you as a designer/developer to inject some…

    on android, color, colour, ui

  5. (My) Open Source Libraries

    Over the past few months I've been receiving a ton of emails, tweets, G+ mentions and GitHub issues in connection with my open source libraries. So I thought I would set out what my plan is for them in the future, and the order in which I'll be tackling the…

    on android, open source

  6. Pushing AARs to Maven Central

    Over the past few weeks I've been updating ActionBar-PullToRefresh for the release of v0.7, but have been a bit blocked on publishing the library as an Android Archive (aar) to Maven Central. It was the number one issue/request that I received, and while I had a working local…

    on android, maven, gradle