title: Android: Convert points to pixels
body: <p>I have been using the <code>pt</code> unit in XML files. Now I need to set the width of an element at runtime. How can I set the width by points so that it is the same unit I have been using everywhere else. I assume I will need to multiply by resolution and dpi. A code sample would be best.</p>