title: Single Custom Seekbar in Android with different range
body: <p>I have tried many solution to achieve a single custom seekbar with different range
  when reaches to certain points. I am working on science project where i need a custom seekbar for android application. where the seekbar will have 1st range from
  0-50 with Red color background, 2nd range from 51-67 with Yellow color background and Last 68-100 with Green color background. All the 3 ranges should be of equal size or equally divided. I have tried a lot and able to set equal size background of custom seekbar in android with the help of this tutorial:
  <a href="https://i.stack.imgur.com/UuZj8.png" rel="nofollow noreferrer">https://azzits.wordpress.com/2013/11/17/customseekbar/</a></p>
  
  <p>The problem is setting different range and increment values based on criteria.</p>
  
  <p>I have also attached image drawn in paint to get a clear idea about what i want to achieve.</p>
  
  <p>How to achieve this. Please help.
  <a href="https://i.stack.imgur.com/UuZj8.png" rel="nofollow noreferrer">Custom Seek Bar with different range and background</a></p>
  
  <p><a href="https://i.stack.imgur.com/oyoqz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oyoqz.png" alt="enter image description here"></a></p>