Hard-coding button's width in dimension units
<p>I've got the hard-coded layout, consisting of <code>Button</code>s, and need to enlarge some of them. I found <code>Button</code>'s method <code>setWidth(int value)</code>, accepting width in pixels, but I need to set value in <code>dp</code>. So, how can I set <code>dp</code> value in program code?</p>
