String eitherKey = "either"; String orKey = "or"; CheckBoxPreference either = new CheckBoxPreference(this); either.setKey(eitherKey); either.setTitle("Either"); either.setSummary("It is either one or"); either.setDefaultValue(false); either.setDisableDependentsState(true); inlinePrefCat.addPreference(either); try { //Crossfade Time CheckBoxPreference or = new CheckBoxPreference(this); or.setKey(orKey); or.setTitle("Or"); or.setSummary("the other"); inlinePrefCat.addPreference(or); or.setDependency(eitherKey); } catch (Exception e) { }
CheckBoxPreference cpref = new CheckBoxPreference(this); cpref.setTitle(cmd.getName()); cpref.setKey(cmd.getName()); cpref.setChecked(true); cmdScr.addPreference(cpref);
checkbox.setKey(overlay.getId()); checkbox.setPersistent(true); checkbox.setTitle(overlay.getTitle(language));
checkboxPref.setKey("checkbox_preference"); checkboxPref.setTitle(R.string.title_checkbox_preference); checkboxPref.setSummary(R.string.summary_checkbox_preference); nextScreenCheckBoxPref.setKey("next_screen_toggle_preference"); nextScreenCheckBoxPref.setTitle(R.string.title_next_screen_toggle_preference); nextScreenCheckBoxPref.setSummary(R.string.summary_next_screen_toggle_preference); parentCheckBoxPref.setSummary(R.string.summary_parent_preference); prefAttrsCat.addPreference(parentCheckBoxPref); parentCheckBoxPref.setKey(PARENT_CHECKBOX_PREFERENCE);
checkboxPref.setKey("checkbox_preference"); checkboxPref.setTitle(R.string.title_checkbox_preference); checkboxPref.setSummary(R.string.summary_checkbox_preference); nextScreenCheckBoxPref.setKey("next_screen_toggle_preference"); nextScreenCheckBoxPref.setTitle(R.string.title_next_screen_toggle_preference); nextScreenCheckBoxPref.setSummary(R.string.summary_next_screen_toggle_preference); parentCheckBoxPref.setSummary(R.string.summary_parent_preference); prefAttrsCat.addPreference(parentCheckBoxPref); parentCheckBoxPref.setKey(PARENT_CHECKBOX_PREFERENCE);
overview.setKey(settings.getInOverviewGraphKey()); overview.setTitle(R.string.label_include_in_overview_graph); overview.setPersistent(true); estimate.setKey(settings.getEstimationEnabledKey()); estimate.setTitle(R.string.label_estimate_measurement); estimate.setSummary(R.string.label_estimate_measurement_summary);