@ Override public void onViewAttachedToWindow ( RecyclerView . ViewHolder viewHolder , int position ) { IItem item = FastAdapter . getHolderAdapterItem ( viewHolder , position ) ; if ( item != null ) { try { item . attachToWindow ( viewHolder ) ; if ( viewHolder instanceof FastAdapter . ViewHolder ) { ( ( FastAdapter . ViewHolder ) viewHolder ) . attachToWindow ( item ) ; } } catch ( AbstractMethodError e ) { Log . e ( "FastAdapter" , e . toString ( ) ) ; } } }
is called in onViewAttachedToWindow when the view is detached from the window