I have a HorizontalScrollView which contains 3 "pages". When my app starts up, I tell the scrollview to scroll one screen width so that the middle page is always displayed first. See below:
+------+------+------+
+ ET + + +
+------+ + +
+ + + +
+ + + +
+------+------+------+
^ ^
ET above represents an EditText view. If I don't add the EditText so the first page, it behaves fine. However, if I add the EditText view, the scroll view always scrolls to the left page and displays the keyboard on my phone.
Why does the EditText view (or keyboard??) cause the scrollview to scroll to the far left? How can I stop it from doing this?
If you can post the code it will be better.
But so far what you have to do is to set the focus on your main ScrollView
and clear the focus from your EditText