Android布局屏幕分辨率问题
我几乎已经完成了我的 Android 应用程序,问题是当我在多个屏幕尺寸上测试它时,填充等项目的布局似乎不正确。我不明白我应该如何支持所有屏幕尺寸,因为我已经使用了所有文本的“dp”值和填充大小等。我使用“背景”作为填充屏幕的图像,并且背景包括按钮和框的布局,这些按钮和框将有文本视图覆盖它们。我一直在测试我的 HTC 欲望,我刚刚注意到这个问题。我认为这一切都会好起来的,因为我一直在使用 dp 进行所有测量等。任何修复我的布局的提示都会受到赞赏,因为我的应用程序非常好脱离这个:(
I have almost finished my app for android, the problem is when i test it on multiple screen sizes the layout of items such as padding etc, seems to be incorrect. I don't understand how I am supposed to support all screen sizes, because I have used all 'dp' values for the text and sizes for padding etc. I am using the 'background' as an image which fills the screen, and the background includes the layout of buttons and boxes that will have textviews overlaying them. I have been testing on my HTC desire and I have just noticed this issue. I assumed that it would all be okay seeing as I have been using dp for all measurments etc. Any tips to fix my layouts would be appreciated as my app is pretty much good to go apart from this :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仔细阅读以下链接,您将获得最佳方法:
支持多个屏幕
支持多种屏幕分辨率
<一个href="http://android-developers.blogspot.com/2009/10/support-for-additional-screen.html" rel="nofollow">支持 Android 中的其他屏幕分辨率和密度
兼容屏幕
<一个href="http://developer.android.com/resources/samples/MultiResolution/index.html" rel="nofollow">MultiResolution - 多种分辨率
Read the following links very carefully you will get the best way to do:
Supporting Multiple Screens
Support for Multiple Screen Resolutions
Support for additional screen resolutions and densities in Android
compatible-screens
MultiResolution - Multiple Resolutions