Android TextView在奇怪的地方自动换行

Android TextView在奇怪的地方自动换行,android,textview,line,break,multiline,Android,Textview,Line,Break,Multiline,我在多行文本视图中的一个奇怪位置遇到了自动换行的问题。有人知道我做错了什么吗 以下是xml布局: <TextView android:id="@+id/tvDescription2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="16dp"

我在多行文本视图中的一个奇怪位置遇到了自动换行的问题。有人知道我做错了什么吗

以下是xml布局:

<TextView
    android:id="@+id/tvDescription2"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="16dp"
    android:inputType="textMultiLine"
    android:singleLine="false"
    android:text="test"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/tvDescriptionTitle2" />

以下是资源字符串:

<string name="labelFamilleParaben">Paraben: les propriétés antibactérienne et antifongique font qu\'il est généralement utilisé comme conservateur dans les cosmétiques. L\'utilisation de parabènes porte à controverse en raison de leur capacité à activer les récepteurs des œstrogènes, induisant une possible action sur la fertilité et les tumeurs œstrogéno-dépendantes, comme le cancer du sein. Ils ont également la réputation d\’avoir un pouvoir allergisant de contact et leur exploitation dans les produits cosmétiques est réglementée.</string>
Paraben:les propriétés antibactérienne and antifongique font que'il est génénérelations useécomm conservate dur dans les cosmétiques.Lèa de parabènes porteèa provision de leur capacityéactiverérés réceptues des gœnes,在肥沃和癌症患者以及癌症患者身上可能采取的行动。在生产过程中避免接触过敏原和过敏原的使用。
以下是java代码:

                String descriptionContent2="<ul>";
                for(IngredientFamille ingredientFamille:ingredient.getDescription().getFamilles()){
                    if(ingredientFamille.getLabel()!=null)
                        descriptionContent2 += "<li>&nbsp;" + getContext().getString(ingredientFamille.getLabel())+"</li>";
                }
                descriptionContent2 += "</ul>";

                TextView tvDescription2 = view.findViewById(R.id.tvDescription2);
                tvDescription2.setText(Html.fromHtml(convertHtmlTagIfNeed(descriptionContent2)));
字符串描述content2=“
    ”; 对于(IngRedientFamile IngRedientFamile:Component.getDescription().GetFamiles()){ 如果(IngRedientFamile.getLabel()!=null) descriptionContent2+=“
  • ”+getContext().getString(IngreditFamile.getLabel())+“
  • ”; } descriptionContent2+=“
”; TextView tvDescription2=view.findViewById(R.id.tvDescription2); tvDescription2.setText(Html.fromHtml(convertHtmlTagIfNeed(descriptionContent2));
下面是它的外观: