Dynamically add checkBoxPreference to PreferenceFragment
<p>I need to display a directory listing of files and folders that I get of an API. Once a user clicks on one of the directories I look for its sub directories and list them under the parent one just to the right, and so it goes on. <strong>Not Sure what the best way is for this?</strong></p>

<p>I made a settings view and Have a "Directories" setting. Once you click on it I need to load the sub directories in the PreferenceScreen. And the user must be able to drill down into the sub directories and select the ones he wants with something like a <strong>checkBoxPreference</strong></p>

<p>So In the end I can make up a list of Checked Directories.</p>

<p><strong>MY IDEAS</strong></p>

<ol>
<li>Show folders, once user clicks on a folder, slide the sub folders into view, and so on.</li>
<li>Show folders, once user clicks on a folder, show the subfolders just below the parent folder, moving the children little to the right.</li>
<li>Show the folders that was selected as <strong>checkBoxPreferences</strong>, and have a button to start a new view that the user selects the folders from</li>
</ol>

<p>I am really new to Android dev and not sure how I would implement any of these?</p>

<p>Can you please direct my in some direction so I may try it? Im not asking for a code example, just a logical explanation of some possible methods or ideas?</p>
