title: Programmatically populating preferences with checkboxes
body: <p>In my setting page I have a preference which fetches a list of toggle-able settings that I wanted to display as individual checkbox preferences.</p>
  
  <p>I know that <code>preferences.xml</code> supports generating lists of preferences (looking at wi-fi settings page) but <code>ListPreference</code> only allows you to select one from the list. </p>
  
  <p>I've been searching for how to generate preferences programmatically but have only managed to find how to change attributes of preferences that are already in the XML.</p>