public void onRowViewUpdate ( NotificationBoard board , RowView rowView , NotificationEntry entry ) { if ( DBG ) Log . v ( TAG , "onRowViewUpdate - " + entry . ID ) ; ImageView iconView = ( ImageView ) rowView . findViewById ( R . id . icon ) ; TextView titleView = ( TextView ) rowView . findViewById ( R . id . title ) ; TextView textView = ( TextView ) rowView . findViewById ( R . id . text ) ; TextView whenView = ( TextView ) rowView . findViewById ( R . id . when ) ; ProgressBar bar = ( ProgressBar ) rowView . findViewById ( R . id . progress ) ; if ( entry . iconDrawable != null ) { iconView . setImageDrawable ( entry . iconDrawable ) ; } else if ( entry . smallIconRes != 0 ) { iconView . setImageResource ( entry . smallIconRes ) ; } else if ( entry . largeIconBitmap != null ) { iconView . setImageBitmap ( entry . largeIconBitmap ) ; } titleView . setText ( entry . title ) ; textView . setText ( entry . text ) ; if ( entry . showWhen ) { whenView . setText ( entry . whenFormatted ) ; } if ( entry . progressMax != 0 || entry . progressIndeterminate ) { bar . setVisibility ( View . VISIBLE ) ; bar . setIndeterminate ( entry . progressIndeterminate ) ; if ( ! entry . progressIndeterminate ) { bar . setMax ( entry . progressMax ) ; bar . setProgress ( entry . progress ) ; } } else { bar . setVisibility ( View . GONE ) ; } }
Called when a row view is being updated .