Code example for DigitsKeyListener

    	case DIALPAD:
    		return new DialerKeyListener();
    	case INTEGER:
    		return new DigitsKeyListener();
    	case SIGNED:
    		return new DigitsKeyListener(true, false);
    	case DECIMAL:
    		return new DigitsKeyListener(true, true);
    	case NONE:
    		return null; 
    public static final int TYPE_TEXT_FLAG_NO_SUGGESTIONS = 0x00080000;
    /** {@inheritDoc} */ 
    protected View createView(Context c) {
        et = new EditText(c);
Connect your IDE to all the code out there  Get Codota for Java