private void initializeShowSingleChoiceListDialogPreference() {
        Preference preference =
                findPreference(getString(R.string.show_single_choice_dialog_preference_key));
        preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {

            @Override
            public boolean onPreferenceClick(final Preference preference) {
                initializeSingleChoiceListDialog();
                singleChoiceListDialog
                        .setShowAnimation(createRectangularRevealAnimation(preference));
                singleChoiceListDialog
                        .setDismissAnimation(createRectangularRevealAnimation(preference));
                singleChoiceListDialog
                        .setCancelAnimation(createRectangularRevealAnimation(preference));
                singleChoiceListDialog.show();
                return true;
            }

        });
    }
private void initializeShowSingleChoiceListDialogPreference ( ) { Preference preference = findPreference ( getString ( R . string . show_single_choice_dialog_preference_key ) ) ; preference . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { @ Override public boolean onPreferenceClick ( final Preference preference ) { initializeSingleChoiceListDialog ( ) ; singleChoiceListDialog . setShowAnimation ( createRectangularRevealAnimation ( preference ) ) ; singleChoiceListDialog . setDismissAnimation ( createRectangularRevealAnimation ( preference ) ) ; singleChoiceListDialog . setCancelAnimation ( createRectangularRevealAnimation ( preference ) ) ; singleChoiceListDialog . show ( ) ; return true ; } } ) ; }
Initializes the preference, which allows to show the single choice list dialog.