I have use textSize of Anko
textSize = sp(16).toFloat()
But. textSize very Big.
textSize 16sp of xml Layout is smaller textSize of Anko
Difference between text size of anko libs and textsize xml layout ??
This is because TextView's setTextSize already interprets value in scaled pixel units. Instead, you should be using just 16f. This is equivalent to 16sp in xml.
thanks you.
Solved my problem! Great!
thanks
Most helpful comment
This is because
TextView'ssetTextSizealready interprets value in scaled pixel units. Instead, you should be using just16f. This is equivalent to16spin xml.