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.
私のアプリでは、いくつかを配置しEditBoxesました。ユーザーがいくつかのデータを入力するとき、私は彼があまりにも多くの文字を入力するのを止めたいと思っています。つまり、文字数が 80 を超える場合、その横に入力された文字は停止し、非表示にする必要があります。
EditBoxes
Androidでこれを行うためのオプションはありますか、それとも自分のコードを書くべきですか? 自分でコードを書かなければならない場合は、友達を助けてください。
xml でsetFiltersまたは android:maxLength を使用する