Android平板开发屏幕分辨率和尺寸
我正在开发 10.1 屏幕尺寸、800 x 1280 分辨率的 Android 平板电脑。我读到控制栏(带有按钮:后退、主页等)的高度为 80px(不确定)。所以我告诉应用程序 UI 设计师向我发送 720 x 1280 分辨率的设计,但后来我注意到屏幕顶部还有一个栏(带有应用程序图标和名称),我知道如何让它消失,但是我想保留它。我不知道该栏的高度以及向 UI 设计师询问什么分辨率。你能告诉我我需要什么分辨率吗?
I am developing for Android tablet with 10.1 screen size with 800 x 1280 resolution. I read that the control bar (with buttons: back, home etc.) is 80px height (not sure). So i told the app UI designer to send me the design in 720 x 1280 resolution, but then i have noticed that there is also bar on top of the screen (with the app icon and name), i know how to make it disappear but i would like to keep it. I don't know the height of that bar and what resolution to ask from the UI designer. Can you please tell me what resolution i need?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到它:
屏幕高度:800px
状态栏(底部):48px
操作栏(顶部):56px
中间:696px
Found it:
Screen height: 800px
Status Bar (Bottom): 48px
Action Bar (Top): 56px
Middle:696px
你不应该将你的 UI 绑定到 Android 上的特定和固定尺寸,如果可能的话,尝试根据可拉伸的九个补丁和 android xml 资源(例如渐变和形状)重新思考图形元素,以防你不知道它们,这里有一些链接:
九个补丁: http://developer.android.com/guide/developing/tools/draw9patch.html
可绘制资源:http://developer.android.com/guide/topics/resources/drawable-resource.html
这里有一个类似问题的链接,其中包含一些值Android 中状态栏的高度: Android 中状态栏的高度
You should not bind your UI to specific and fixed sizes on Android, if possible try re-thinking the graphic elements in terms of stretchable nine patches and android xml resources such as gradients and shapes, in case you don't know them here's some link:
Nine-Patches: http://developer.android.com/guide/developing/tools/draw9patch.html
Drawable resources: http://developer.android.com/guide/topics/resources/drawable-resource.html
And here's a link to a similar question with some values for the height of the status bar in Android: Height of status bar in Android