This sample contains Thermometer view which loads the bitmap and the inner view is drawn from the code. This view contains the calculation to make both the views drawn from the bitmap and code to be responsive in the screen.
This sample is created for this stackoverflow answer.