What units to pass UI methods?
<p>Reading the <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">Supporting Multiple Screens</a> of the Android developer guide it says it is always best to use density independent pixels (dp) instead of pixels and it also says Android handles most of the application rendering on different density devices.</p>

<p>Now my question is, if we look at the padding function of the View class</p>

<blockquote>
  <p>setPadding (int left, int top, int
  right, int bottom)</p>
</blockquote>

<pre><code>left     the left padding in pixels
top       the top padding in pixels
right   the right padding in pixels
bottom    the bottom padding in pixels
</code></pre>

<p>When I use this function is it alright to pass direct values or do I have to pass converted values, from dp to px, to best show the UI in all devices?</p>
