ListView UNDER ScrollView
<p>Is it possible to place my list view UNDER my scrollview. I have a page with a bunch of items that don't fit on the screen so I use a scrollview. Then I want a listview to place comments under all of these items.</p>

<p>I have done a hack to measure the listview height and placed it inside the scrollview, but I know this is frowned upon so is there a way I can just place it under the scrollview? Sample code would be great. I have tried placing it under in XML, but it didn't show on the screen. Thanks!</p>

<pre><code>&lt;ScrollView
        android:id="@+id/tabone2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" &gt;

        &lt;LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:background="@drawable/backrepeat"
            android:orientation="vertical" &gt;

            &lt;ImageView
                android:id="@+id/imageView1"
                android:layout_width="fill_parent"
                android:layout_height="10dp"
                android:layout_gravity="center_vertical"
                android:src="@drawable/mainimage" &gt;
            &lt;/ImageView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/Description"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="TITLE"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/tvTrack"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginBottom="10dip"
                android:layout_marginTop="10dip"
                android:gravity="center_horizontal"
                android:text="Trackname"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textStyle="bold" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/ratetitle"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="RATE"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;RatingBar
                android:id="@+id/ratingbar"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:numStars="5"
                android:paddingBottom="6dp"
                android:paddingTop="10dip"
                android:stepSize="0.5" /&gt;

            &lt;Button
                android:id="@+id/ratingbutton"
                android:layout_width="wrap_content"
                android:layout_height="40dp"
                android:layout_gravity="center_horizontal|center_vertical"
                android:layout_marginBottom="10dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:gravity="center_horizontal|center_vertical"
                android:text="Submit Rating"
                android:textStyle="bold"
                android:textSize="10sp" &gt;
            &lt;/Button&gt;

             &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/favorite"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="FAVORITE"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" /&gt;
            &lt;RelativeLayout android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dip"&gt;

            &lt;Button
                android:id="@+id/favoritebutton"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal|center_vertical"                  
                android:background="@drawable/pagebutton"
                android:gravity="center_horizontal|center_vertical"
                android:text="Add to Favorites"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:textStyle="bold"
            &gt;
            &lt;/Button&gt;
            &lt;ProgressBar
    android:layout_centerVertical="true"
    android:layout_centerHorizontal="true"
    android:id="@+id/progress_bar5"     
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"
    android:gravity="center_horizontal|center_vertical"
    android:layout_gravity="center_horizontal|center_vertical"
    android:indeterminate="true"
    android:visibility="gone" /&gt;
            &lt;/RelativeLayout&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/Description"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="DETAILS"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" /&gt;

            &lt;TextView
                android:id="@+id/tvTime"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginLeft="10dip"
                android:layout_marginRight="10dip"
                android:gravity="center_horizontal"
                android:text="Tracktime"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textStyle="bold" &gt;
            &lt;/TextView&gt;

            &lt;TextView
                android:id="@+id/tvViews"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textStyle="bold" &gt;
            &lt;/TextView&gt;

            &lt;TextView
                android:id="@+id/tvRatings"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textStyle="bold" &gt;
            &lt;/TextView&gt;

            &lt;TextView
                android:id="@+id/tvPlays"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textStyle="bold" &gt;
            &lt;/TextView&gt;

            &lt;TextView
                android:id="@+id/tvDownloads"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:layout_marginBottom="10dip"
                android:textStyle="bold" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:id="@+id/viewdesc1"
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/Description2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="DESCRIPTION"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:id="@+id/viewdesc2"
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" /&gt;

            &lt;TextView
                android:id="@+id/tvDescription"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:gravity="center_horizontal"
                android:layout_marginBottom="10dip"
                android:textAppearance="?android:attr/textAppearanceLarge" &gt;
            &lt;/TextView&gt;

            &lt;Button
                android:id="@+id/playbutton1"
                android:layout_width="fill_parent"
                android:layout_height="50dp"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:text="PLAY"
                android:textStyle="bold" &gt;
            &lt;/Button&gt;

            &lt;Button
                android:id="@+id/downloadbutton3"
                android:layout_width="fill_parent"
                android:layout_height="50dp"
                android:layout_marginBottom="30dp"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:text="DOWNLOAD"
                android:textStyle="bold" &gt;
            &lt;/Button&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909" /&gt;

            &lt;TextView
                android:id="@+id/tvComments"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#000000"
                android:gravity="center_horizontal"
                android:text="COMMENTS"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:textColor="#ffffff" &gt;
            &lt;/TextView&gt;

            &lt;View
                android:layout_width="fill_parent"
                android:layout_height="2dip"
                android:background="#b00909"
                android:layout_marginBottom="10dip" /&gt;

            &lt;ListView
            android:id="@+id/lvComments"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:background="#00000000"
            android:cacheColorHint="#00000000"
            android:divider="#00000000"
            android:listSelector="#00000000" /&gt;


            &lt;EditText 
              android:id="@+id/etComments"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="5dip"
              android:layout_marginBottom="5dip"
              android:layout_marginLeft="7dip"
              android:layout_marginRight="7dip"
              android:hint="Add comment..."
              android:singleLine="false"/&gt;
            &lt;Button
                android:id="@+id/btnAddComment"
                android:layout_width="fill_parent"
                android:layout_height="50dp"
                android:layout_marginBottom="30dp"
                android:layout_marginLeft="7dip"
                android:layout_marginRight="7dip"
                android:layout_marginTop="7dip"
                android:background="@drawable/pagebutton"
                android:text="Post Comment"
                android:textStyle="bold" &gt;
            &lt;/Button&gt;


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

<p>I did not include the ViewFlipper portion...</p>
