I have created a sample demo application for the custom Android preference using support library preference-v7.
Code: https://github.com/saurabhkpatel/Android-Custom-Preference-Sample
I am facing two problems here:
In this demo application, I have total three different types of preferences. One is
ListPreference, Second isCustom Preferencewhich I have created and the last one isSwitchPreferenceCompat. If I putCustom Preferencein between these two preferences categories then it's not working expected. Please check this attached screenshot. You can see that thirdSwitchPreferenceCompatis missing.Even I can see the seek bar twice which comes from custom layout file, but I have only one seek-bar over there.
Everything is working fine if I put SampleCustomPreference at last.
Any ideas, Why this behavior is happening?
Thanks for your time.
Expected

