For a XML file that looks like this, it does what you are looking for. If this is not what you want, then how about you paste your XML file ?
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="none" android:id="@+id/sv" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/tv" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <Button android:text="Button01" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> <Button android:text="Button02" android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> </LinearLayout> </ScrollView> Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 26, 6:57 am, jsdf <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

