Add buttons to layout with a View
<p>I'm trying out the Finger Paint API demo and I'm trying to add buttons to it. I have included </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="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" &gt;

    &lt;view
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="com.triopsys.imosandroid.ViewControllers.SignatureViewController$MyView" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>In my layout xml, but I can't add buttons on the top or bottom of this view; </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="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" &gt;

    &lt;LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" &gt;

        &lt;Button
            android:id="@+id/buttonCancel"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Cancel" &gt;
        &lt;/Button&gt;

        &lt;Button
            android:id="@+id/buttonOk"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="OK" &gt;
        &lt;/Button&gt;
    &lt;/LinearLayout&gt;

    &lt;LinearLayout
        android:id="@+id/linearLayout2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" &gt;

        &lt;view
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            class="com.triopsys.imosandroid.ViewControllers.SignatureViewController$MyView" /&gt;
    &lt;/LinearLayout&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>But this doesn't work.</p>
