There are 2 ways to create custom views/controls with Android. You can either extend the View class (or other classes inheriting from it), or you can extend a Layout class. What I’ve found (for now) to be the simplest path to the goal is the latter. Here’s how.
Let’s say I want to create a custom control called PersonControl.
Here’s the associated xml layout.
Simple and easy!