Custom Views Includes the complete demo code for: Measurment demo (AspectRatioImageView) Layout demo (LinearLayout)