Scroll view not working on API Level 26 and Onward

瀏覽次數:25 次
跳到第一則未讀訊息

Rhishikesh Chogale

未讀,
2019年8月10日 上午11:46:162019/8/10
收件者: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

未讀,
2019年8月12日 上午10:15:202019/8/12
收件者:android-platform
Please consider filing a bug report here:
Thank you
回覆所有人
回覆作者
轉寄
0 則新訊息