Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TextView / TextBox でスペースバー、改行などの入力を無効にする可能性はありますか?
EditText への入力を制限するには、いくつかの方法があります。
それらの中で最も重要なのは、android:inputType の設定です。オプション一覧はこちら。
TextWatcher を設定することもできます。ドキュメンテーションはこちら。