Android - UI 操作栏在平板电脑上倾斜
我正在寻求开发一个带有操作栏的应用程序,该应用程序可以在所有尺寸的屏幕上运行。我有一个relativelayout可以做到这一点。如果我将高度指定为 50,它在平板电脑设备上会显得更大且拉伸。我该怎么办?我是一名安卓新手。
I am looking to develop an app with an actionbar that will work on all sizes of screens. I have a RelativeLayout which does it. If I specify height as 50, it appears larger and stretched on tablet devices. How do I go about it? I am an Android novice.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看以下链接 -
http://developer.android.com/guide/practices /screens_support.html
几天前我遇到了同样的问题,并将 px 转换为 dpi。现在它在所有尺寸上都显示良好!
You could look at the following link -
http://developer.android.com/guide/practices/screens_support.html
I ran into the same issue a few days back and converted px to dpi. Now it shows up fine on all sizes!