@Retention(value=CLASS) @Target(value=METHOD) public @interface PreferenceClick
This annotation is intended to be used on methods to receive events defined
by
OnPreferenceClickListener#onPreferenceClick when the
Preference has been clicked by the
user.
The annotation value should be one or several of R.string.* fields. If not set, the method name will be used as the R.string.* field name.
The method MAY have one parameter:
Preference parameter to know
which preference has been clicked
Example :
@PreferenceClick(R.string.myPref)
void clickOnMyPref() {
// Something Here
}
@PreferenceClick
void myPrefPreferenceClicked(Preference preference) {
// Something Here
}
PreferenceChangepublic abstract String[] resName
Copyright © 2010-2015. All Rights Reserved.