private void obtainInsetForeground ( @ NonNull final TypedArray typedArray ) { int color = typedArray . getColor ( R . styleable . ScrimInsetsLayout_insetDrawable , - 1 ) ; if ( color == - 1 ) { Drawable drawable = typedArray . getDrawable ( R . styleable . ScrimInsetsLayout_insetDrawable ) ; if ( drawable != null ) { setInsetDrawable ( drawable ) ; } else { setInsetColor ( ContextCompat . getColor ( getContext ( ) , R . color . scrim_insets_layout_insets_drawable_default_value ) ) ; } } else { setInsetColor ( color ) ; } }
Obtains the drawable which should be shown in the layout s insets from a specific typed array .