Scroll view not working on API Level 26 and Onward

25 views
Skip to first unread message

Rhishikesh Chogale

unread,
Aug 10, 2019, 11:46:16 AM8/10/19
to android-platform

I have simple Android activity containing Image and Text with links. but Scroll view is not working in API 26 on wards.but it is working below API 26 level. i have tested it on API 21,22,23,24,25 it works.

if i remove below code

SpannableStringBuilder stringText=new SpannableStringBuilder("Photo by Paul Hudson licensed under CC BY 2.0");
stringText.setSpan(click1,0,5, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        stringText.setSpan(click2,9,21, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        stringText.setSpan(click3,36,45, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        stringText.append(getString(R.string.Lara_Info));
        textView.setText(stringText);
        textView.setMovementMethod(LinkMovementMethod.getInstance()); 

then it is working on every API level.please help.

Glenn Kasten

unread,
Aug 12, 2019, 10:15:20 AM8/12/19
to android-platform
Please consider filing a bug report here:
Thank you
Reply all
Reply to author
Forward
0 new messages