自动可调的textview改变高度android

问题描述

我有一个文本大小为自动Textview 我正在 API 响应中分配文本,但它的高度正在改变。

我怎样才能改变它的高度我设置了最小和最大线修复来设置固定高度,但在某些情况下它不起作用

<TextView
        android:id="@+id/tvFeedTitle"
        style="@style/komuTitle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:autoSizeMaxTextSize="@dimen/Feed_header_font_max_size"
        android:autoSizeMinTextSize="@dimen/Feed_header_font_size"
        android:autoSizeTextType="uniform"
        android:ellipsize="end"
        android:maxLines="3"
        android:minLines="3"
        android:text="Covid News Live Updates: After Pfizer,Serum Institute seeks indemnity over COVID-19 vaccine,says sources"
        android:textColor="@color/white"
        android:textSize="@dimen/Feed_header_font_size"
        app:layout_constraintTop_toBottomOf="@+id/imgFeed"
        app:layout_constraintEnd_toEndOf="@id/guideline2"
        app:layout_constraintStart_toStartOf="@id/guideline" />

这是我的Textview

1

enter image description here

2

enter image description here

我正在显示 Recyclerview 中的所有内容

请帮助我,任何帮助将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)