【发布时间】:2015-04-01 00:55:21
【问题描述】:
使用普通布局文件,我可以像这样设置顶部填充
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?attr/actionBarSize"
>
但是,使用首选项屏幕时,它会使填充不足一些像素(操作栏为 168 dp,但填充仅显示 144),知道如何解决这种跨设备方式。谢谢。
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?attr/actionBarSize">
【问题讨论】:
标签: android android-actionbar preferencefragment