title: how to check String is valid hex color code in android
body: <p><br>
  I had a String  which I need to validate whether it is valid hex color code or not .
  My sample strings are as follows :
  <br></p>
  
  <blockquote>
    <p>1 - #ff00000</p>
    
    <p>2 -#ff347820</p>
  </blockquote>
  
  <p>How to validate the above strings to check whether they are valid hex color codes or not .
  <br>
  Can anyone help me in sorting out this issue ?</p>
  
  <p><br>
  Thanks in advance</p>