Buttons that can change size dynamically
<p>I have created a custom Button class and I want to be able to change its width/height depending on some factors in addition to the content width/height. How can I do this?</p>

<ul>
<li>I have tried doing a setWidth/setHeight, but that had no effect.</li>
<li>I have set the layout_width/height to wrap_content and tried to override the function that calculates the content size, but I can't find it either.</li>
</ul>

<p>I am new to Android so I bet I am missing something really obvious, so please enlighten me.</p>
