Best way to change width/height of a widget programmatically?
<p>What's the best way to change width/height of a widget (I mean, a UI widget, subclass of android.view.View) programmatically?</p>

<p>Doing something like this works, but it doesn't seem quite right:</p>

<pre><code>ViewGroup.LayoutParams params = mSomeView.getLayoutParams();
params.height += 10;
mSomeView.setLayoutParams(params);
</code></pre>
