EditText 文本换行在弹出窗口中不起作用

问题描述 投票:0回答:1

enter code here
我花了几个小时试图解决用户界面问题。我需要设置一个 EditText 以将几行收集到弹出窗口中。 下面是 XLM 代码,如果设置到活动或片段中,它会像超级按钮一样工作,但当将相同的代码设置到弹出窗口的自定义窗口中时,则完全不起作用。

`<EditText
    android:id="@+id/et_prescription_text"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="24dp"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="24dp"
    android:hint="risultato"
    android:inputType="textMultiLine"
    android:paddingStart="10dp"
    android:paddingTop="5dp"
    android:paddingBottom="10dp"
    android:scrollbars="vertical"
    android:textSize="@dimen/_12sdp"
    android:textStyle="bold"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/et_prescrpt_date" />`

有什么建议吗? 先谢谢你了

我尝试了网上建议的各种变体,但没有效果。 我不是一个非常有经验的 Android 程序员。

android android-edittext
1个回答
-2
投票

测试ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttt

© www.soinside.com 2019 - 2024. All rights reserved.