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
Use below library which is perfect for your needs.
According to doc: A TextView that automatically resizes text to fit perfectly within its bounds.
Link: Android autofit textview