0

I have an activity screen which is having more contents than can fit on device screen, so that activity screen has a scrolling functionality.

In the activity screen, one of the controls is a textview. Its a multi line textview, however, if the user types more text than can fit in the TextView and he wants to scroll within the textview, then the scrolling gesture actually scrolls the screen instead of scrolling the TextView.

Is there any elegant solution to this problem?

Thanks.

AllSolutions
  • 1,176
  • 5
  • 19
  • 40

1 Answers1

0

You can't have more than one widget scrolling on the same axis.

Since you have a ScrollView in your Activity, set the TextView's layout_height to be "wrap_content".

Benito Bertoli
  • 25,285
  • 12
  • 54
  • 61