@Retention(value=CLASS) @Target(value=TYPE) public @interface PreferenceScreen
Should be used on EActivity
or EFragment
classes which are subclass of PreferenceActivity
or PreferenceFragment
, to inject the
preference screen from resource.
The annotation value should be one of R.xml.* fields.
Example :@PreferenceScreen(R.xml.settings) @EActivity public class SettingsActivity extends PreferenceActivity { @PreferenceByKey(R.string.myPref1) Preference myPreference1; @PreferenceByKey(R.string.checkBoxPref) CheckBoxPreference checkBoxPref; @AfterPreferences void initPrefs() { checkBoxPref.setChecked(false); } }
PreferenceHeaders
public abstract String resName
Copyright © 2010-2015. All Rights Reserved.