Publishing our custom view
Once we're happy with our custom view and the way it is, we're ready to share it. If we've also followed the best practices and recommendations, we might be additionally confident. Even if you haven't, the best way to learn is to get feedback from the community as soon as possible. Don't be afraid of making mistakes; you'll learn on the way.
There are many ways of publishing a custom view: we can open source it, for example, or we can just publish a compiled binary as a SDK or Android library. Most of the recommendations above are given for the open source approach or internal reuse, either for yourself or your colleagues, but many of them, not all, also apply if your goal is to publish a closed SDK or just the compiled binary as a library.
Open sourcing our custom view
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...