private void visualizeDivider ( @ NonNull final Divider divider , @ NonNull final DividerViewHolder viewHolder ) { if ( ! TextUtils . isEmpty ( divider . getTitle ( ) ) ) { viewHolder . titleTextView . setText ( divider . getTitle ( ) ) ; viewHolder . titleTextView . setVisibility ( View . VISIBLE ) ; viewHolder . leftDivider . setVisibility ( View . VISIBLE ) ; } else { viewHolder . titleTextView . setVisibility ( View . GONE ) ; viewHolder . leftDivider . setVisibility ( View . GONE ) ; } if ( dividerColor != - 1 ) { viewHolder . titleTextView . setTextColor ( dividerColor ) ; viewHolder . leftDivider . setBackgroundColor ( dividerColor ) ; viewHolder . rightDivider . setBackgroundColor ( dividerColor ) ; } }
Visualizes a specific divider .