Aim of this sample to understand essentials of developing custom layouts (also known as ViewGroup).
This custom layout just simple adds new view on place of finger touch. View itself has custom states. For simplicity it only has two states: default and selected.
Custom layout implementation: MyLayout.java
Custom view implementation: MyView.java