Add scroll bar for linear layout?
<p>I need to add a scroll for linear layout.I use the following code to create the linear layout.But it's not working</p>

<pre><code>LinearLayout llay=new LinearLayout(context);
    llay.setVerticalScrollBarEnabled(true);
</code></pre>

<p>If i use the following lines i will get the Scrollbar.</p>

<pre><code>ScrollView sc=new ScrollView(context);
sc.addView(llay);
</code></pre>

<p>But I need to add scroll for the Linear layout without using ScrollView.
Thanks in advance !!!</p>
