title: android: Set clicked color of Tab to background color of a TableRow
body: <p>I have a TabLayout. In that I have a tablelayout with dynamically added rows. 
  When a TableRow is selected/clicked I want to set its background color to the Pressing or Clicked color of Tab. </p>
  
  <p>I don't want to set any static color but want to use the default theme color. How to get the color info of Tablayout ?</p>
  
  <p>How to handle the left and right side of the tabs ? This is what I get begore and after setting the tab_background.xml as th backgroundRsourse for all tabs :
  <img src="https://i.stack.imgur.com/FjLwY.png" alt="Tab bg settings"></p>
  
  <p>On the left hand side, both the images are without any settings, but the right and left corners are smooth. 
  On right hand side, both images are with setings, see the corners of selected tabs are just a square, they should be rounded off or smoth like the ones without any settings. 
  It seems I got to use tab_selected_bar_right and tab_selected_bar_left. I have copied them to my drawable, but can't make out how do I use them. What settings to give int the xml below provided by @mudit.</p>
  
  <p>Please guide me. Any help is highly appreciated. I am in a hurry.</p>
  
  <p>Thanks</p>