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.
It is given in the material design guidelines. How to go about coding it ?
link to the Guidelines - https://material.google.com/style/typography.html#typography-other-typographic-guidelines
There's now an official solution to this problem. Autosizing TextViews introduced with Android O are available in the Support Library 26 and is backwards compatible all the way down to Android 4.0.