<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="200dip" android:minHeight="
?android:attr/listPreferredItemHeight" android:orientation="vertical" android:gravity="
center_vertical">
<ImageView android:id="@+android:id/icon" android:layout_width="300dip"
android:layout_height="200dip" android:paddingStart="0dip" android:paddingEnd="0dip"
android:layout_gravity="center_vertical" />
- <RelativeLayout android:id="@+android:id/text_layout" android:layout_width="0dip"
android:layout_height="0dip" android:paddingStart="0dip" android:paddingEnd="0dip"
android:gravity="center_vertical" android:layout_weight="1" android:focusable="true"
android:background="@drawable/list_selector_holo_dark">
<TextView android:id="@+android:id/title" android:layout_width="0dip"
android:layout_height="wrap_content" android:focusable="true" android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView android:id="@+android:id/summary" android:layout_width="0dip"
android:layout_height="wrap_content" android:layout_below="@android:id/title"
android:layout_alignStart="@android:id/title" android:textAppearance="
?android:attr/textAppearanceSmall" android:maxLines="2" />
</RelativeLayout>
</LinearLayout>
3: 在Setting的device_info_settings.xml中添加一个
LogoPreference
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/about_settings">
<com.android.settings.LogoPreference android:key="jasonAAA" android:icon="@drawable/
pic_indicator" />
|