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.
Androidネイティブアプリでクライアント側の検証を行うことはできますか?つまり、XMLページ自体で、フィールドが空かどうか、電話番号の数値のみなどを確認できます。
type (xml 内) を
android:inputType="number"
したがって、数値で検証する必要はありません。しかし、空のフィールドをチェックするには、おそらく、textBox 値の長さを比較して Java コードをチェックインする必要があります。