--- lang: ja-jp breaks: true --- # Android EditText の種類(android:inputType) 2021-08-03 > `android:inputType` > https://developer.android.com/reference/android/widget/TextView.html?hl=ja#attr_android:inputType ## XML ```xml= <EditText android:id="@+id/editTextTextMultiLine" android:layout_width="405dp" android:layout_height="658dp" android:layout_marginEnd="34dp" android:layout_marginBottom="45dp" android:ems="10" android:gravity="start|top" android:inputType="text" android:text="ああああああああああああああああああああああああああああああああああああ\nいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいい\nうううううううううううううううううううううううううううううううううう" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> ``` ## `android:inputType` 指定なし ![](https://i.imgur.com/lbqnFVw.png) ## `android:inputType="text"` ![](https://i.imgur.com/upPgaOU.png) ## `android:inputType="textMultiLine"` ![](https://i.imgur.com/pGsO2hN.png) ## 改行文字がある場合にのみ改行される、`NoWrap` のやり方がわからない。。 ###### tags: `Android` `EditText` `android:inputType`