Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid include tag - invalid layout reference
    primarykey
    data
    text
    <p>I'm having a problem including a different layout through the include tag in the android layout xml file. When specifing the layout reference ( @layout/... ), i'm getting a InflateException in the Eclipse ADT with the following error: <strong>InflateException: You must specifiy a valid layout reference. The layout ID @layout/func_edit_simple_calculator_toolbox is not valid.</strong></p> <p>the reference should be valid, as I've selected it from the the list of my other layouts and didnt type it in. I'm using android sdk v2.1</p> <p>these are the layout files</p> <p>func_edit_simple_calculator_toolbox.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="wrap_content"&gt; &lt;TableRow android:id="@+id/TableRow01" android:layout_width="wrap_content"android:layout_height="wrap_content"&gt; &lt;Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="2"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="3"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button04" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="+"&gt;&lt;/Button&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/TableRow02" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;Button android:id="@+id/Button05" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="4"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button06" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="5"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button07" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="6"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button08" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-"&gt;&lt;/Button&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre> <p>function_editor_layout.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:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;com.calculoid.FunctionView android:id="@+id/function_view" android:layout_width="fill_parent" android:layout_height="fill_parent"/&gt; &lt;include android:id="@+id/include01" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/func_edit_simple_calculator_toolbox"&gt;&lt;/include&gt; &lt;/LinearLayout&gt; </code></pre> <p>Does any one know what could be the problem?</p> <p>thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload