My native Xamarin WebView app works fine until I add a button or progressbar. If I uncomment one of the controls in the code below the app crashed upon startup. What am I doing wrong?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--
<Button
android:layout_weight="34"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:orientation="vertical"
android:text="Home"
android:id="@+id/btnHome" />
-->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/relativeLayout1">
<!--<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="invisible"
android:id="@+id/progressBar1" />-->
<android.webkit.WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webView1" />
</RelativeLayout>
</LinearLayout>