1

I have a Scrollview and items ( EditTexts, TextViews and Spinners ) inside it. So when I programatically update values in EditTexts Scrollview automatically scrolls to the top. The question is how can I prevent that autoscroll ?

abrutsze
  • 496
  • 1
  • 8
  • 24

1 Answers1

0

use scrollview.setEnabled(false) before update values in EditTexts and after update scrollview.setEnabled(true)

Rasoul Miri
  • 11,234
  • 1
  • 68
  • 78
  • I do not think that it is possible, since EditTexts get updated automatically ( ~ every second ) when sensor values get changed. – abrutsze Jul 10 '17 at 07:18