title: setBackgroundDrawable() deprecated
body: <p>So my sdk goes from 15 to 21 and when I call <code>setBackgroundDrawable()</code>, Android Studio tells me that it's deprecated.</p>
  
  <p>I thought of going around it using:</p>
  
  <pre><code>int sdk = android.os.Build.VERSION.SDK_INT;
  
  if(sdk &lt; android.os.Build.VERSION_CODES.JELLY_BEAN) {
      layout.setBackgroundDrawable(getResources().getDrawable(R.drawable.img_wstat_tstorm));
  } else {
      layout.setBackground(getResources().getDrawable(R.drawable.img_wstat_tstorm));
  }
  </code></pre>
  
  <p>But then, I get an error at "setBackground()".</p>
  
  <p>So, how would you deal with it?</p>