将 xml 布局作为基础的最佳 dp 尺寸是多少?
什么 Dp 和模拟器最适合使用 eclipse IDE 在 android 上开发 xml 布局?
What Dp and emulator is the best for developing xml layouts on android with eclipse IDE?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“最好”是主观的。我建议从 800x480 和 hdpi(现在是常见密度)等常见分辨率开始,但您需要使用各种分辨率和密度进行测试,事实上,对于复杂的应用程序,您最终可能会开发多种屏幕尺寸/密度的布局,此时您必须创建适当不同的模拟器或找到合适的设备进行开发和测试。
"Best" is subjective. I'd advise just starting with a common resolution like 800x480 and hdpi (which is a common density now), but you'll want to test with a variety of resolutions and densities, and in fact for a complicated application you might end up developing layouts for multiple screen sizes/densities at which time you'll have to create appropriately different emulators or find appropriate devices to develop and test on.
请阅读支持多个屏幕。
没有“最好” - 您应该针对特定设备/屏幕尺寸/分辨率,或者准备通用开发并使用不同的图像/布局等进行补偿。
Read Supporting Multiple Screens.
There is no 'best' - you should either target specific devices / screen-sizes / resolutions or be prepared to develop generically and compensate with different images / layouts etc.