public static void setViewBackground ( View v , Drawable d ) { if ( Build . VERSION . SDK_INT >= 16 ) { v . setBackground ( d ) ; } else { v . setBackgroundDrawable ( d ) ; } }
legacy helper for setting background