It’s a nice article. One suggestion though, maybe you should use <merge> tag rather than using LinearLayout in your benefit view xml file. It will remove extra layer of LinearLayout from custom view. Also you can provide methods to set values programmatically.