I created something using the main.xml (because I want a background image when my application starts)
Using xml Syntax Highlighting
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:padding="6dip" android:background="@drawable/mainbackground">
<Button android:id="@+id/getnewchar" android:text="New Character"
android:layout_height="wrap_content" android:layout_width="fill_parent"
android:background="@drawable/mainpagebutton" android:textSize="24sp"
android:textColor="#FFFFFF" android:clickable="true" android:hint="Get a new character"/>
</RelativeLayout>
Parsed in 0.002 seconds, using
GeSHi 1.0.8.4
As you can see I set android:background="@drawable/mainbackground" on my RelativeLayout tag. This points to the map "res/drawable" in that map I have an image 'mainbackground.png' ..... that's all there is to it.
For the Button I also have a background 'android:background="@drawable/mainpagebutton" ' works the same way.
Hope that helps you