How to create two textviews and checkbox in single layout in android?
<p>In my project I have to display <strong>two textviews and below that checkboxes(which should display dynamically)</strong>. I have taken a listview for displaying these 3 i.e textviews and checkboxes. </p>

<p>My Code:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/lnrlayout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FFFFFF" &gt;

    &lt;LinearLayout

        android:id="@+id/rlt_main1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" 
        android:background="#ffff00" 
       &gt;

        &lt;TextView
            android:id="@+id/text1"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_alignParentTop="true"
            android:layout_marginTop="10dip"
            android:text=""
            android:textColor="#000000" &gt;
        &lt;/TextView&gt;

        &lt;TextView
            android:id="@+id/text2"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_below="@+id/casedescription"
            android:layout_marginTop="10dp"
            android:text=""
            android:textColor="#000000" &gt;
        &lt;/TextView&gt;

        &lt;LinearLayout
            android:id="@+id/chklnlayout"
            android:layout_width="fill_parent"
            android:layout_below="@+id/tv_question"
            android:layout_height="wrap_content"
            android:orientation="vertical" android:background="#ff00ff" &gt;
        &lt;/LinearLayout&gt;

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

<p>Is the layout correct? I am having a problem with this layout. I need to display two textviews and along with that checkboxes dynamically in the same list. How can I achieve that?</p>
