Creating a Custom Compound Button Bar
<p>I have to create a custom compound button bar control in Android like the one <a href="http://www.coated.com/wp-content/uploads/2009/11/slacker-radio-android-application.jpg" rel="nofollow">here</a>. To create a button bar like this, I am thinking of extending a LinearLayout and add my buttons to it. The buttons have a black background but with a gradient fill; I am not keen on using PNGs since the color of the buttons can change at runtime. </p>

<p>How can I get similar effect in Android? </p>

<p>Thanks.</p>
