private void obtainHeaderDividerColor ( @ StyleRes final int themeResourceId ) { TypedArray typedArray = getContext ( ) . getTheme ( ) . obtainStyledAttributes ( themeResourceId , new int [ ] { R . attr . materialDialogHeaderDividerColor } ) ; int defaultColor = ContextCompat . getColor ( getContext ( ) , R . color . header_divider_color ) ; setHeaderDividerColor ( typedArray . getColor ( 0 , defaultColor ) ) ; }
Obtains the color of the divider of the dialog s header from a specific theme .