[android-developers] How to active the other item in PreferenceActivity’XML
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home