简体   繁体   English

如何将ppi转换为android dpi

[英]How to convert ppi to android dpi

Can anyone help me. 谁能帮我。 I need to convert ppi to android device dpi. 我需要将ppi转换为android设备dpi。 I have gone through some other post in stack overflow but i didnt get the exact answer. 我在堆栈溢出中经历了其他一些帖子,但是我没有得到确切的答案。

Why iam asking this question is, now iam developing an android app ,when i tested that app in a real device(Samsung Galaxy Grand) it's not good to see the app interface,but when i created an emulator with screen configuration of samsung galaxy grand the app interface is perfect as what i need. 为什么Iam问这个问题是,现在我正在开发一个Android应用程序,当我在真实设备(三星Galaxy Grand)中测试该应用程序时,看不到该应用程序界面,但是当我创建具有三星银河大屏幕配置的模拟器时该应用程序界面非常适合我的需求。

Screen Configuration used in emulator 仿真器中使用的屏幕配置
screen Size:5 inch 屏幕尺寸:5寸
Resolution :800 x 480 分辨率:800 x 480
Aspect Ratio: long 长宽比:长
Size :normal(also tested large) 尺寸:普通(也测试过大)
Density: hdpi,mdpi 密度:hdpi,mdpi

please anyone help in this issue please Thank you 请任何人帮助解决这个问题,谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM