Building a Charts Component

In the previous chapter, we saw how to build a complex custom view that combined a bit of everything we've covered in this book. It included some rendering code, used a third-party library, had touch interactions and animations, and we briefly talked about performance considerations. It was a rather complete custom view example, but it's not the only one. In this chapter, we'll be building another complex custom view. Step by step, we'll build a charts custom view to draw graphs we can embed in our Android applications. We'll start by building a very basic implementation and we'll be adding additional features and functionalities along the way. In more detail, we'll see about: