Hi,

Following is my XML for PreferenceActivity to use. 

 

<PreferenceCategory android:title=*" Settings"* >

                <CheckBoxPreference android:key=*"key1"*

                        android:title=*"key1 test"* 

                        android:defaultValue=*"false"*

                        android:summary=*"This is the key1"* />

                

                <ListPreference android:key=*"key2"*

                        android:entries=*"@array/sentries"*

                        android:title=*"key2 setting"*

                        android:summary=*"This is the key2"*

                        android:defaultValue=*"0"*

                        android:enabled = *"false"*

                        android:selectable=*"false"*

                        android:entryValues=*"@array/svalues"*>

                </ListPreference>

 

</PreferenceCategory>

 

 

When the user clicks the key1 to ‘true’ , the key2 will be active for use. 
Otherwise key2 will keep in not selectable. 

Can anyone tell me how doing it?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to