private OnPreferenceChangeListener createPreferenceFragmentButtonBarElevationChangeListener ( ) { return new OnPreferenceChangeListener ( ) { @ Override public boolean onPreferenceChange ( final Preference preference , final Object newValue ) { int elevation = Integer . valueOf ( ( String ) newValue ) ; setButtonBarElevation ( elevation ) ; return true ; } } ; }
Creates and returns a listener which allows to adapt the elevation of a preference fragment s button bar when the value of the corresponding preference has been changed .