0

I have some edittexts in a scrollview. When a user clicks on them the keyboard shows up and sometimes it covers the edittext. The user can scroll the half of the screen that shows the page to the edittext but the minute the user types something it immediately scrolls to the top obscuring the edittext again.

How do I get this to stop?

Also for what it's worth the scrollview has

android:focusableInTouchMode="true"

in it's XML.

user2312638
  • 443
  • 2
  • 6
  • 17

1 Answers1

0

Set android:descendantFocusability="beforeDescendants" for scrollview and it should work!

Link1 : Focusable EditText inside ListView

Link2 : https://stackoverflow.com/a/2680077/1556997

Community
  • 1
  • 1
Arash
  • 3,013
  • 10
  • 52
  • 74