Because of specific needs, in my android layout, I have used "mm" to provide size. In TextView also, I have provided sizes in "mm". When I do textView.getTextSize()
, the size returned is always in pixel values. I want to convert that pixel value in "mm". For example, if I have set font size as "2mm", then on any device, when I do getTextSize()
, I would like to get "2mm".
Should I use any specific method for that? I could find answers to convert "mm" to "pixel" but could not find anything about converting vice-versa.