title: How to auto size textview dynamically according to the length of the text in android?
body: <p>I am taking data of variable sizes from the server and setting to a textView and i wanted the textview to resize according to the length of the text set.</p>
  
  <p>It is given in the material design guidelines. How to go about coding it ?</p>
  
  <p><img src="https://i.stack.imgur.com/pzASQ.png" alt="Material Design Guidelines"></p>
  
  <p>link to the Guidelines - <a href="https://material.google.com/style/typography.html#typography-other-typographic-guidelines" rel="noreferrer">https://material.google.com/style/typography.html#typography-other-typographic-guidelines</a></p>