Back to project page android-edittext-validator.
The source code is released under:
MIT License
If you think the Android project android-edittext-validator listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.andreabaccega.edittextformexample; /* w w w.j av a 2 s . c o m*/ import android.text.TextUtils; import android.widget.EditText; import com.andreabaccega.formedittextvalidator.Validator; public class CiaoValidator extends Validator { public CiaoValidator( String customErrorMessage ) { super( customErrorMessage ); } @Override public boolean isValid( EditText et ) { return TextUtils.equals( et.getText(), "ciao" ); } }