Java Android Canvas.drawText(…) equally big in all screens
问题 I have drawn text with canvas.drawText(...) in my project and tested it against with different devices. However, the size of the text varies a lot from screen to screen. I have tried to multiply it with getResources().getDisplayMetrics().density but they are still slightly not the same size. Is there a way to get the text to have the same size on different devices? 回答1: hi you can look at this post , http://catchthecows.com/?p=72, i think it helps to you. @Override protected void