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