Android: how to use dip (density independent pixel) in code?
<p>How do I specify that an <code>int</code> parameter is in dip? Specifically, how would write the equivalent of:</p>

<pre><code>android:layout_width="50dip" 
android:layout_height="50dip" 
</code></pre>

<p>Something like...:</p>

<pre><code>LayoutParams params = new LayoutParams(50, 50)
</code></pre>
