次のように、既存の Preferences 要素にカスタム属性を追加することはできますmyFormat
か?
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<EditTextPreference
android:defaultValue="0.3"
myFormat="Format 123"
android:inputType="numberDecimal"
android:key="steering_threshold" />
</PreferenceScreen>
または、ここで説明されているように、次のようなカスタム要素を作成する必要がありますMyCustomPreference
か?
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<com.example.yourpackage.MyCustomElement
[...]