--- 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` 指定なし  ## `android:inputType="text"`  ## `android:inputType="textMultiLine"`  ## 改行文字がある場合にのみ改行される、`NoWrap` のやり方がわからない。。 ###### tags: `Android` `EditText` `android:inputType`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up