galaxy nexus 中状态栏、导航栏和标题栏的大小(以像素为单位)是多少?
我认为是因为它们,我的背景图片 (720x1280 像素) 的高度被拉长了。
我的布局:
<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。
如果你想删除所有东西(按钮除外),你可以在 list 中的 Activity 声明中添加它
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
关于Android 4 条尺寸(Galaxy Nexus),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11122464/