Implementing fixed height scrollable listview in DialogPreference
<p>I have sub-classed a DialogPreference and implemented a folder picker using ListView. Everything is working nicely when moving up and down the folder tree and displaying the folders in the listview.</p>

<p>My problem is that the dialog window grows and shrinks when I move up and down the folder tree (due to the different number of sub-folders in each folder). I am keen to keep the dialog window a fixed height as the folder tree is navigated.</p>

<p>As a solution I specified a fixed height for the list view and this works well in portrait mode, however I have noticed that when I switched to landscape mode the listview would not scroll and the only reason I can come up with is that the number of items in the listview is less than the fixed height so the scrolling is not enabled. This is a bit of a pain since it truncates the list in landscape mode and the user can not scroll down to see the rest of the list items.</p>

<p>Does anyone have any suggestions? I am not too hung up about using a dialog (full-screen presentation is OK as well), so any alternatives that can work within the PreferencesActivity is OK too.</p>

<p>Thanks in advance,
dsana123.</p>
