How to Measure TextView Height Based on Device Width and Font Size?
问题 I am looking for method in Android that will take a input (text, text_font_size, device_width) and based on these calculations it will return how much height will required to display particular text ? I am setting a text view/ webview height runtime based on his content,I am aware about warp content but I can't use in my case because of some web view minimum height issue. So I am trying to calculate height and based on that I am setting view height. I have tried with following ways Paint