title: How do I set background image with picasso in code
body: <p>I know picasso loads image into imageview etc but how do I set my layout background image using picasso?</p>
  
  <p>My code:</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.id.relativelayout);
          relativeLayout.setBackgroundResource(R.drawable.table_background);
          Picasso.with(MainActivity.this)
                  .load(R.drawable.table_background)
                  .resize(200, 200)
                  .into(relativeLayout);
          return relativeLayout;
      }
  </code></pre>
  
  <p>What I have here gives any error saying it cannot be resolved. I have a ScrollView and relative layouts.</p>