title: How to draw a line in diagonal direction on a widget android
body: <p>I want to know is there a simple way to draw a line in diagonal direction, like using <code>&lt;View .... /View&gt;</code> in xml to draw line in vertical or horizontal direction.</p>
  
  <p>Below is the image of what I want to do</p>
  
  <p>Selected form of button<br>
  <a href="https://i.stack.imgur.com/A56CD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/A56CD.png" alt="enter image description here"></a></p>
  
  <p>Unselected form of button<br>
  <a href="https://i.stack.imgur.com/dSZyH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dSZyH.png" alt="enter image description here"></a></p>
  
  <p>Changing color of text is not a problem, its drawing line for unselected case and making invisible for selected one. Thank you </p>