Sometimes the Android platform layouts and widgets are all you need. Sometimes you need more control over design and interaction. Sometimes you need some help with performance. Custom Views and ViewGroups are powerful tools that can provide these things, but with great power comes great complexity. To help you get started, we will first build a simple custom View and then add layout, drawing, and interaction. Along the way will discuss when and when not to go custom and talk good practices.
Huyen Tue Dao is an Android developer and Google Developer Expert, a B.S. and M.S. in Computer Engineering from the University of Maryland, a member of the Android team at Trello, and co-creator of the “Android Dialogs” YouTube channel. The only other thing that keeps her up as late as development (and often longer) is gaming: PC, console, board, card, anything.