title: Create own SwitchCompat Preference
body: <p>Since the appcompat v7 is missing a <code>SwitchCompatPreference</code> it seems like it's necessary to create it by myself.</p>
  
  <p>How can this be achieved? I googled a bit and found a tutorial for a <code>DialogPreference</code>. I tried to adopt it for a <code>SwitchCompatPreference</code> but in my xml layout it always says that this class is not allowed in the preference xml.</p>
  
  <p>What do I need to do?</p>