I am new to Android Studio/Java.I have composed a script which creates a TextView
contains a number of lines of information. I want to make each line clickable, to create a Toast dialog for example, which content relevant to that entry. This I can do.
I also want the TextView
to be scrollable. I can do this too...... but NOT both.
I am guessing from what I have read that one command cancels the other. Here is the code I am trying to use. Is there another way to enable this?
responseTextView.setMovementMethod(new ScrollingMovementMethod());
responseTextView.setMovementMethod(LinkMovementMethod.getInstance());
responseTextView.setText(builder, TextView.BufferType.SPANNABLE);
I have found the answer by changing the activity_main.xml to place the TextView inside a ScrollView control.