我需要一种方法来说明设备是 LDPI 还是 MDPI 还是 HDPI 将 html 字体大小设置为 xeg
if (ldpi){
htmlString.append("<br><p align='center'><font color='Yellow' size='5'>");
}
else if (mdpi){
htmlString.append("<br><p align='center'><font color='Yellow' size='6'>");
}
else if (hdpi){
htmlString.append("<br><p align='center'><font color='Yellow' size='7'>");
}
任何帮助,将不胜感激