title: Setting background image - Android
body: <p>Ok, so i want to set a background image behind my 6 buttons, the header and the footer, i dont want anything to happen when someone clicks on it or anything like that.
  Lets say the background png image is "@drawable/background".</p>
  
  <p>Here is a picture of what the screen looks like at the moment: <a href="http://i.stack.imgur.com/66MoI.png" rel="nofollow">http://i.stack.imgur.com/66MoI.png</a></p>
  
  <p>And here is my current relevant code:</p>
  
  <p>dashboard_layout.xml</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/home_root"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
  
      &lt;!-- Include Action Bar --&gt;
      &lt;include layout="@layout/actionbar_layout"/&gt;
  
      &lt;!--  Include Fragmented dashboard --&gt;  
      &lt;include layout="@layout/fragment_layout"/&gt; 
  
      &lt;!--  Include Footer --&gt;
      &lt;include layout="@layout/footer_layout"/&gt;   
  </code></pre>
  
  <p></p>
  
  <p>MenuActivity.java</p>
  
  <pre><code>public class MenuActivity extends Activity {
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.dashboard_layout);
  
      /**
       * Creating all buttons instances
       * */
      Button btn_chat = (Button) findViewById(R.id.btn_chat);
  
      Button btn_forums = (Button) findViewById(R.id.btn_forums);
  
      Button btn_donate = (Button) findViewById(R.id.btn_donate);
  
      Button btn_reports = (Button) findViewById(R.id.btn_reports);
  
      Button btn_commands = (Button) findViewById(R.id.btn_commands);
  
      Button btn_photos = (Button) findViewById(R.id.btn_photos);
  
      /**
       * Handling all button click events
       * */
      btn_chat.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
              Intent i = new Intent(getApplicationContext(), ChatActivity.class);
              startActivity(i);
          }
      });
  
      btn_forums.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
              Intent i = new Intent(getApplicationContext(), ForumsActivity.class);
              startActivity(i);
          }
      });
  
      btn_donate.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
              Intent i = new Intent(getApplicationContext(), DonateActivity.class);
              startActivity(i);
          }
      });
  
      btn_reports.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
              Intent i = new Intent(getApplicationContext(), ReportsActivity.class);
              startActivity(i);
          }
      });
  
      btn_commands.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
              Intent i = new Intent(getApplicationContext(), CommandsActivity.class);
              startActivity(i);
          }
      });
  
      btn_photos.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View view) {
              Intent i = new Intent(getApplicationContext(), PhotosActivity.class);
              startActivity(i);
          }
      });
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks a mile in advance guys :)</p>