4

次のように、既存の 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
    [...]
4

0 に答える 0