Okay, thanks. but by "automatic", i meant that the view should scroll 
downward without user interaction; at a pace that i can set up.

On Wednesday, September 12, 2012 3:41:44 PM UTC-4, TreKing wrote:
>
> On Wed, Sep 12, 2012 at 11:45 AM, Shoaib Dar <sda...@gmail.com<javascript:>
> > wrote:
>
>> ScrollView sv = (ScrollView)findViewById(R.layout.main_scrollview_layout);
>> setContentView(sv);
>>
>
> This doesn't make sense. findViewByID finds a view withing the Activity's 
> hierarchy, while setContentView sets the View to be the root of the 
> hierarchy. Therefore, if you can find it, it's already part of the layout 
> so there's no need to set it. And if it's not already part of the 
> hierarchy, then you won't be able to find it.
>
> You want setContentView(R.layout.main_scrollview_layout);
>  
>
>> Also does anyone know how i can set scrollview to automatically scroll?
>>
>
> That should be automatic. That's kind of the point of ScrollView.
>
>
> -------------------------------------------------------------------------------------------------
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to