Open sourcing a custom view or, alternatively, an Android library, is pretty easy and straightforward. You need to make sure you perform some additional steps but the process itself is very simple.
We've been using GitHub to share the source code of the examples of this book. This is not a coincidence. GitHub is one of the most widely used tools for sharing source code and open source libraries and projects. It's also the tool we will recommend and will use in this chapter to explain how to publish our custom view.
First things first; if we don't have a GitHub account, we've to register ourselves and create it. Creating an account is free as long as we want to host only public repositories or publicly accessible ...