Android my LinearLayout
<p>I extend <code>LinearLayout</code> and create my own class <code>GameLinerLayout</code> and then I create class <code>LudoGame</code> that extend that class <code>GameLinerLayout</code>.</p>

<p>Now I try to use it in my layout "main.xml"</p>

<pre><code>&lt;android.game.ludo.LudoGame xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+id/ll_absolute"
 android:orientation="vertical"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:background="@drawable/background"&gt;
&lt;/android.game.ludo.LudoGame&gt;
</code></pre>

<p>but I can't make it work "background" parameter. So how to set background image on my own view?</p>

<p>I don't understand this. I have my layout and I just want to set the background on that view (there is no other views) and if I do this</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/wood"&gt;
&lt;android.game.ludo.LudoGame xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/ll_absolute"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
&lt;/android.game.ludo.LudoGame&gt;
 &lt;/LinearLayout&gt;
</code></pre>

<p>It does not display anything and if I set "android:background="#FFFFFF"" on "LudoGame" layout then I see content but without background. Can you show me some example how to resolve this?</p>

<p>Thanks.</p>

<p>That is the same way how my Layout work GameLinerLayout extends LinearLayout
And I @Override onDraw method where is object Canvas and where I draw content</p>

<pre><code>@Override
protected void onDraw(Canvas canvas) 
{
    super.dispatchDraw(canvas);
    drawFields(canvas);
}
</code></pre>

<p>But I don't want to draw background image with Canvas, I would like (if it possible) to set that background in XML when I try to defined(use) my Layout</p>
