ListPreference新しい を作成してのデフォルト イメージを変更したいstyle。
CheckBoxPreference継承Widget.CompoundButton.CheckBoxして新しいを設定することでそれをandroid:button行いましたが、でそれを行う方法がわかりませんListPreference。
ListPreference新しい を作成してのデフォルト イメージを変更したいstyle。
CheckBoxPreference継承Widget.CompoundButton.CheckBoxして新しいを設定することでそれをandroid:button行いましたが、でそれを行う方法がわかりませんListPreference。
WidgetLayoutプロパティを使用して、設定にアイコンを追加できます。
例:
<EditTextPreference
android:defaultValue=""
android:dialogTitle="@string/mode_name"
android:key="mode_name"
android:order="0"
android:summary=""
android:title="@string/mode_name"
android:widgetLayout="@layout/mode_item_preference"
/>
そしてmode_item_preference.xml
<?xml version="1.0" encoding="utf-8"?>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/app_name"
android:focusable="false"
android:src="@drawable/delete" />