One liner xml to stateful RecyclerView.ViewHolder instance

RecyclerViews of multiple shapes, sizes and orientation. Credit:

The is an extremely flexible and indispensable Android . It unfortunately requires quite a bit of boilerplate to set up; a fully functional asks that you:

  1. Set a
  2. Create an to return the different kinds of view types you may have
  3. Specify classes for each…

What if styling spans in Android was fluent and joining them as simple String concatenation?

The fluent span API and it’s result

and are the fundamental abstraction for text styling and markup in Android. A thorough breakdown of how they work can be seen in detail here:

The issue with spans in Android however is how difficult they can be to create. The class helps with this significantly, especially when…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store