android.widget.Filter を使ってみた。 例えば、EditText で英数字しか入力できないようにするには こんな感じにする。 public class FilterTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); EditText ed = (EditText)findViewById(R.id.edittext); ed.setFilters(filters); } private InputFilter[] filter