在onCreate中增加自定义布局
preferences_layout中如下:
preferences_layout中如下:
<
RelativeLayout
xmlns:android
=
"http://schemas.android.com/apk/res/android"
android:layout_height
=
"fill_parent"
android:layout_width
=
"fill_parent"
>
<
ImageView
android:id
=
"@+id/myCustomImageView"
android:src
=
"@drawable/xmas"
android:layout_width
=
"fill_parent"
android:layout_height
=
"50dp"
/>
<
ListView
android:id
=
"@android:id/list"
android:layout_width
=
"fill_parent"
android:layout_height
=
"fill_parent"
android:layout_below
=
"@+id/myCustomImageView"
/>
</
RelativeLayout
>
|