Inside Peference Activity, Create a Listview of Themes to Enable for the App
===

I have a application in which i have a preference acitivty which loads my settings xml. Now, what i want to do is implement a listview of themes to enable for the application. i know how to setup a listview in the settings xml for the most part, but i dont know how to enable different themes for the application. Can anybody point me in the right direction. or have a little sample code.

Here is my Preference JAVA file, and here below that is my Settings XML.

     public class Prefs extends PreferenceActivity {
    
	ListPreference listPreference;
	
    protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            addPreferencesFromResource(R.xml.settingsbasic);
            //New 
            Preference customPref = (Preference) findPreference("clearcache");
            customPref.setOnPreferenceClickListener(new OnPreferenceClickListener() {

                                    public boolean onPreferenceClick(Preference preference)    {
                                            Toast.makeText(getBaseContext(),
                                                            "Cache Cleared",
                                                            Toast.LENGTH_LONG).show();
                                            WebViewClientDemoActivity.web.clearCache(true);
                                            return false; 
                                    
                                    }       
I do not have my List view yet in the code, any help would be great on how to implement. I just have a clear cache button.

Here is my settings XML.

       <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
       
        <CheckBoxPreference android:key="themes"
                android:title="@string/themes" 
                android:summary="@string/themes_list"
                android:defaultValue="true" />
        
        <CheckBoxPreference android:key="something"
                 android:title="@string/cache" 
                 android:summary="@string/somethingelse"
                 android:defaultValue="true" />
        <Preference
                android:title="Clear Cache"
                android:summary="Hopefully this Works"
                android:key="clearcache" />
  
        </PreferenceScreen>

I have 2 check boxes, i want to change the first check box to a list view, and have a array of the list of themes. i just dont know how to enable these themes . Do i create seperate layout files for each theme??? or so i use the themes.xml, if so how do i impletement those by click the object in the listview???

Sorry about all the questions. Any help would  be great.
