title: Android : Tab like toggling button selector instead of spinner
body: <p>I have an android application where in an activity i need a tab like selector where user can select an option.The 3 options are blue,green,red.User need to select any one of them.I can use a spinner for this.But i like to use a round edged tab like feature which can toggle and the selected item will show as highlighted and the others will be grayed out as below.
  <a href="https://i.stack.imgur.com/7iMAu.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/7iMAu.jpg" alt="toggling tab selector"></a>
  I just want the user to be able to toggle only one of the buttons.user can select an option by clicking or by toggling and the view should look like a bar with rounded edge.How to implement above view in android? Please help me.</p>