List of usage examples for android.preference PreferenceGroup addItemFromInflater
public void addItemFromInflater(Preference preference)
From source file:nya.miku.wishmaster.chans.nullchancc.NullchanccModule.java
private void addOnlyNewPostsPreference(PreferenceGroup group) { Context context = group.getContext(); CheckBoxPreference onlyNewPostsPreference = new CheckBoxPreference(context); onlyNewPostsPreference.setTitle(R.string.nullchancc_prefs_only_new_posts); onlyNewPostsPreference.setSummary(R.string.nullchancc_prefs_only_new_posts_summary); onlyNewPostsPreference.setKey(getSharedKey(PREF_KEY_ONLY_NEW_POSTS)); onlyNewPostsPreference.setDefaultValue(true); group.addItemFromInflater(onlyNewPostsPreference); }