繁体   English   中英

Android 4条尺寸(Galaxy Nexus)

[英]Android 4 bars size(Galaxy Nexus)

星系关系的状态栏,导航栏和标题栏的大小是多少?

我认为由于这些原因,我的背景图片(720x1280 px)的高度越来越大。

我的布局:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/splash" >

这是你想要的? http://developer.android.com/design/style/metrics-grids.html

导航栏和操作栏的高度(或宽度)为48dp。

如果要删除所有内容(除了按钮),则可以在清单的活动声明中添加此内容

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

如果您是说运行Android 4.1的Nexus 7平板电脑,则底部的导航栏看起来比上面消息中链接的开发指南中所述的48像素明显深。 分析屏幕抓图表明,新的导航栏的纵向宽度为75像素。 我仍在寻找确定的度量。

48 dp与48 px不同。 xhdpi /普通屏幕设备(如Nexus)的48 dps与96px相同。

暂无
暂无

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

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