Hi all,
I have an activity that begins with almost a page of text, then has a
few form controls.
When the activity launches, the first form control takes focus and the
screen scrolls down to make it fully visible.  When this happens, the
text at the top is off the top edge of the screen.

When the screen comes into view, I want the text at the top to be
visible.

So, onCreate, I tried sending a message to the Activity's overridden
handler to do the following:

        ScrollView main = (ScrollView) findViewById(R.id.main);
        main.pageScroll(ScrollView.FOCUS_UP);

This did nothing.
I then tried
        main.scrollTo(0,0);
This also did nothing.

I then tried sending the message from onResume instead of onCreate.
This also did nothing.

Does anyone have suggestions as to how to force the scrollview to
actually scroll?
Thanks,
jsdf
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to