Scroll view not working on API Level 26 and Onward

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Scroll view not working on API Level 26 and Onward

Rhishikesh Chogale

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.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/2d51aaba-c320-4e5a-b87f-ff299015657e%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Scroll view not working on API Level 26 and Onward

Glenn Kasten
Please consider filing a bug report here:
Thank you

On Saturday, August 10, 2019 at 8:46:16 AM UTC-7, Rhishikesh Chogale wrote:

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.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/b4461d08-f5c1-4b87-96e6-32710a7cac5d%40googlegroups.com.