Android 文本视图中的多行不使用可编辑文本

Android 文本视图中的多行不使用可编辑文本,android,textview,Android,Textview,我正在使用TextView显示文本。我需要显示最多3行文本。为了实现这一点,我使用了maxLines属性 <TextView android:id="@+id/textFeedText" android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsi

我正在使用
TextView
显示文本。我需要显示最多3行文本。为了实现这一点,我使用了
maxLines
属性

 <TextView
                android:id="@+id/textFeedText"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:maxLines="3"
                android:textColor="@color/colorFeedDate"
                android:textSize="@dimen/d13sp"/>
没问题。现在,当我点击textview时,有时多行属性似乎不起作用。文本视图文本垂直滚动。并显示以下视图

有没有人面临过这样的问题


谢谢。

共享您所需的字符串。这是以蓝色显示的普通字符串。i、 e.“安娜”,“评论:…”
SpannableString spannableString = new SpannableString(requiredString);
        ClickableSpan clickSpan = new ClickableSpan() {
            @Override
            public void onClick(View view) {

            }

            @Override
            public void updateDrawState(TextPaint ds) {
                ds.setColor(ContextCompat.getColor(mContext, R.color.colorAppBlue));
                ds.setUnderlineText(false);
            }
        };

        spannableString.setSpan(clickSpan, indexOfStart, indexOfEnd - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        textView.append(spannableString);
        textView.setMovementMethod(LinkMovementMethod.getInstance());