how to set X Y and hight width for scoll view
<p>I have scroll-view and table-layout , row-table .</p>

<p>now i want to set X and Y margins and high and width for each one in programming code not xml .</p>

<p>note , I'm using Absolute layout for this activity .</p>

<p>this is my full code of activity : </p>

<p>public class ListActivity extends Activity {</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_list);


AbsoluteLayout ff = (AbsoluteLayout)  this.findViewById(R.id.AbsoluteLayout1);


    TableLayout tl = new TableLayout(this);
    TableRow tr = new TableRow(this);
    TextView tv = new TextView(this);
    ScrollView myScrollView = new ScrollView(this);

            // adding scrollview to current layout 
    ff.addView(myScrollView);

           // adding TableLayout to current myScrollView
    myScrollView.addView(tl);


            /* not working
    ViewGroup.LayoutParams lp = new LayoutParams(100 ,100);
    myScrollView.setLayoutParams(lp);*/


    myScrollView.setPadding(0, 210, 120, 0);

                /* not working 
    LayoutParams layoutParams = new LayoutParams(
             LayoutParams.FILL_PARENT, 
             LayoutParams.WRAP_CONTENT);

    myScrollView.setLayoutParams(layoutParams);  */ 

    tr.addView(tv);

    tv.setText("gewgewg");

 tv.addView(tr);
}

}
</code></pre>
