以下は私のために働いています:
各プリファレンスを個別の XML および個別のアクティビティとして作成してください。これにより、この種のプロパティが継承されなくなります。
次に、次のように親の設定から子の設定を呼び出すことができます。
<Preference
android:key="TODO"
android:title="@string/TODO"
android:summary="@string/TODO"
>
<intent
android:action="com.example.project.preference.child1" />
</Preference>
そして、あなたの子供の好みには、マニフェストで定義された同じアクションが必要です
<action android:name="com.example.project.preference.child1" />
com.example.project.preference.child1が一意であることを確認してください!
ここで、values/styles.xml に以下を追加します。
<style name="app_theme_no_title_pref" parent="android:Theme.Light">
<item name="android:windowNoTitle">true</item>
</style>
もちろん、android:Theme.Lightを必要なものに変更できます。
マニフェストで、これをすべての設定アクティビティ、親と子に追加します。
android:theme="@style/app_theme_no_title_pref"
したがって、マニフェストでは、子プリファレンス アクティビティは次のようになります。
<activity android:name=".TODO"
android:label="@string/TODO"
android:theme="@style/app_theme_no_title_pref">
<intent-filter>
<action android:name="com.example.project.preference.child1" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>