title: Android: custom button shape
body: <p>I'm trying to achieve a custom controller containing of various buttons in different shapes. I'm wondering how I can achieve this with Android.</p>
  
  <p>The result should look similar like this, where every color is a different button.
  <img src="https://i.stack.imgur.com/jOGrT.png" alt="alt text"></p>
  
  <p>I suppose I have to subclass <code>View</code> so please don't write that as an answer ;-) Please give some methodical steps what's needs to be implemented, like drawing, sensing touches, etc or maybe point me to some examples (if exist).</p>
  
  <p>Thanks</p>