title: Android - set layout background programmatically
body: <p>I have noticed that the <em>setBackground</em> method for the <em>RelativeLayout</em> object is targeted for API 16 (Android 4.1) and higher, but my application has the target API 8 and I cannot use it.  </p>
  
  <p>Is there any alternative solution for this problem (besides  marking the class/method with <em>TargetApi</em>(16) or changing the target API in the manifest)?<br>
  Thank you!</p>
  
  <p><strong>Edit</strong>: Eclipse was buggy and it showed me the same error for <em>setBackgroundDrawable</em> but now it seems to work. Thank you for your help.</p>