private void obtainNumberOfColumns ( @ NonNull final TypedArray typedArray ) { int defaultValue = getContext ( ) . getResources ( ) . getInteger ( R . integer . color_palette_preference_default_number_of_columns ) ; setNumberOfColumns ( typedArray . getInteger ( R . styleable . ColorPalettePreference_android_numColumns , defaultValue ) ) ; }
Obtains the number of columns which should be used to preview colors in the preference s dialog from a specific typed array .