0
android:maxLines、lineSpacing属性を試しましたが、私のEditTextは常に次の行の一部を表示します。一度に1行表示するにはどうすればよいですか?Multiline Edittextで一度に1行だけを表示します
<EditText
android:layout_width="match_parent"
android:layout_height="30dp"
android:id="@+id/formulaView"
android:textColor="#000000"
android:textCursorDrawable="@drawable/visible_cursor"
android:background="#ffffff"
android:layout_marginTop="1dp"
android:textSize="18sp"
android:maxHeight="30dp"
android:gravity="center_vertical"
android:layout_marginBottom="1dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:scrollbars="vertical"
android:imeOptions="actionNext"
android:completionThreshold="1"
android:inputType="textMultiLine|textNoSuggestions"/>
xmlレイアウトコードを表示します。 –
@KNeerajLalはい、追加されました。 – Siva
EditTextの高さをwrap_contentに設定します –