title: How to draw multi colored line using xml in android
body: <p><img src="https://i.stack.imgur.com/1NRFY.png" alt="enter image description here"></p>
  
  <p>Is it possible to draw a line like shown in the fig. using android xml ? I need it for setting a background for view pager indicator</p>