How can i write this layout code in my Android Activity?
<p>I wish to create a custom layout out for my sample application. Previously i used the xml layout for User interface, but now i wish to create the application using custom (without using xml layout). I used the below code in my xml, but i change this xml layout to custom code i can't implement (i don't have knowledge how to do this). How can i write this layout code in my Activity?. Any one could you please help me to solve this. Thanks in advance.</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" &gt;

    &lt;ScrollView
        android:id="@+id/webviewscroll"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" &gt;

        &lt;LinearLayout
            android:id="@+id/webviewlinear"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical" &gt;

            &lt;RelativeLayout
                android:id="@+id/webviewframe1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" &gt;

                &lt;WebView
                    android:id="@+id/webview1"
                    android:layout_width="fill_parent"
                    android:layout_height="350dp"
                    android:layout_alignParentBottom="true"
                    android:layout_marginBottom="10dp"
                    android:layout_marginLeft="10dp"
                    android:layout_marginRight="10dp"
                    android:layout_marginTop="20dp" &gt;
                &lt;/WebView&gt;

                &lt;ImageView
                    android:id="@+id/webviewimage1"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:background="@drawable/one" &gt;
                &lt;/ImageView&gt;
            &lt;/RelativeLayout&gt;

            &lt;RelativeLayout
                android:id="@+id/webviewframe2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" &gt;

                &lt;WebView
                    android:id="@+id/webview2"
                    android:layout_width="fill_parent"
                    android:layout_height="350dp"
                    android:layout_alignParentBottom="true"
                    android:layout_marginBottom="10dp"
                    android:layout_marginLeft="10dp"
                    android:layout_marginRight="10dp"
                    android:layout_marginTop="20dp" &gt;
                &lt;/WebView&gt;

                &lt;ImageView
                    android:id="@+id/webviewimage2"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:background="@drawable/two" &gt;
                &lt;/ImageView&gt;
            &lt;/RelativeLayout&gt;
        &lt;/LinearLayout&gt;
    &lt;/ScrollView&gt;

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