On Thu, Apr 28, 2011 at 4:06 PM, rishabh garg <[email protected]> wrote:
> Please suggest how to create ScrollView using this code.
>
>
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> LinearLayout layout=new LinearLayout(this);
> layout.setOrientation(1);
>
One option: Replace "LinearLayout" with "ScrollView" and remove the
setOrientation call. Congratulations, you just created ScrollView using this
code.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en