Whenever I start this activity, it always starts bottomed out--scrolled all the way to the bottom. I am not doing anything weird in the activity OnCreate (or anywhere for th
Add these two lines in your ScrollView
android:focusableInTouchMode="true"
android:descendantFocusability="blocksDescendants"
I don't know why but you could experiment with
ScrollView sv = (ScrollView) findViewById(R.id.scroll);
sv.scrollTo(0,0);
in your onCreate to manually scroll it to where you like it to be.
Along with what devmiles.com said.
If you set the following property in your LinearLayout - android:focusableInTouchMode="true" your LinearLayout will be focused on start and your activity won't scroll to EditText in the bottom.
If you call requestLayout() on a view at the bottom of your linear layout it might steal the focus from your top most view. So just call requestFocus() on the top most view in the linear layout after calling requestLayout() on a lower view.
You can try this code:
scroller.post(new Runnable() {
public void run() {
scroller.fullScroll(ScrollView.FOCUS_DOWN);
}
});
[N:B] [referance link]1
For Xamarin Android development, if you want to do @Graeme solution then:
// Set Focus to ScrollView
ScrollView scrollView = (ScrollView)FindViewById(Resource.Id.scrollView);
scrollView.FocusableInTouchMode = true;
scrollView.DescendantFocusability = Android.Views.DescendantFocusability.BeforeDescendants;