public static void setBackground ( EfficientCacheView cacheView , int viewId , Drawable drawable ) { View view = cacheView . findViewByIdEfficient ( viewId ) ; if ( view != null ) { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . JELLY_BEAN ) { view . setBackgroundDrawable ( drawable ) ; } else { view . setBackground ( drawable ) ; } } }
Equivalent to calling View . setBackground