Binary XML file line #2: Error inflating class android.widget.LinearLayout - alternate solution
<p>I got this error in my code. I searched for solutions and found that the backgound image was very heavy. When i removed that, my code is running fine.</p>

<p>My question is - i still want to Use the image. What are the alternate solutions?</p>

<p>Running on 4.0
Backgoung image - 800 x 1280 px
Size - 350k
Final device that i will be testing - Samsung Galaxy Note</p>

<p>Code
xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" 
android:background="@drawable/menu_bg" &gt;

&lt;ImageButton
    android:id="@+id/colorButton"
    style = "@style/mainmenubuttons"
    android:src="@drawable/btn_colors" /&gt;

&lt;ImageButton
    android:id="@+id/shapeButton"
    style="@style/mainmenubuttons"
    android:src="@drawable/btn_shapes" /&gt;

&lt;ImageButton
    android:id="@+id/numberButton"
    style = "@style/mainmenubuttons"
    android:src="@drawable/btn_numbers" /&gt;
</code></pre>

<p></p>

<p>Attached is the image<img src="http://i.stack.imgur.com/7Ae4f.png" alt="Menu"></p>
