public void setupViews ( Widget widget ) { if ( widget . getUiStyle ( ) == Widget . STYLE_LIGHT ) { int color = ContextCompat . getColor ( getContext ( ) , R . color . albumLoadingDark ) ; mProgressBar . setColorFilter ( color ) ; } else { mProgressBar . setColorFilter ( widget . getToolBarColor ( ) ) ; } }
Set some properties of the view .