Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading XML file throwing a RuntimeException
    text
    copied!<p>I'm using the following XML file for creating a layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget28" android:layout_width="fill_parent" android:layout_height="80px"&gt; &lt;LinearLayout android:id="@+id/linearText" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:layout_marginLeft="10px" android:layout_marginTop="10px"&gt; &lt;TextView android:id="@+id/txtAirLineCodeLv" android:text="TextView" /&gt; &lt;ImageView android:id="@+id/StopDetailBtnLv"/&gt; &lt;TextView android:id="@+id/txtPriceLv" android:text="TextView" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearText1" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;ImageView android:id="@+id/imgFlightLogoLv" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearText2" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;TextView android:id="@+id/txtTotalDurationLv" android:text="TextView" /&gt; &lt;TextView android:id="@+id/txtStopCountLv" android:text="TextView" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearText3" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;TextView android:id="@+id/txtOrgLv" android:text="TextView" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>But when I load this file by using a following code:</p> <pre><code>view = context.LayoutInflater.Inflate(Resource.Layout.CustomizeSearchResult, parent, false) as LinearLayout; </code></pre> <p>a <code>RuntimeException</code> is thrown. I think I have problem in the layout but I'm not able to find that. Because when I load another XML file in place of that, then no error is showed and it run successfully.</p>
 

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