title: Android specifying pixel units (like sp, px, dp) without using XML
body: <p>Is it possible to specify the pixel unit in code. 
  What I mean is, say I have a layout and I want the size to be 20dp, then is there any way to do so without writing in a layout xml</p>