ScrollView Height does not wrap onto parent activity in code
<p>I have this little problem regarding layout with scroll view on my android code</p>

<pre><code>import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.graphics.Color;
import android.view.Menu;
import android.view.ViewGroup.LayoutParams;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.ScrollView;

public class ScheduleList extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().getDecorView().setBackgroundColor(Color.BLACK);
    setTheme(R.style.DefaultForm);
    ScrollView sv = new ScrollView(this);
    ListView lv = new ListView(this);
    String data[] = { "Android", "iPhone", "BlackBerry", "AndroidPeople" };
    ArrayAdapter adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1, data);
    lv.setAdapter(adapter);
    sv.addView(lv);
    sv.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
    setContentView(sv);
}
}
</code></pre>

<p>And this is what I get 
<a href="http://i.stack.imgur.com/spLx0.jpg" rel="nofollow">Result Image</a></p>

<p>How do I resize this ScrollView to match height into my activity form, I did change the LayoutParams.FILL_PARENT and also LayoutParams.WRAP_CONTENT on setLayoutParams but it doesn't work.</p>
