Code example for DigitsKeyListener

0
    	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:
    	default: 
    		return null; 
    	} 
    } 
    
    public static final int TYPE_TEXT_FLAG_NO_SUGGESTIONS = 0x00080000;
 
    /** {@inheritDoc} */ 
    @Override 
    protected View createView(Context c) {
        et = new EditText(c);
        et.setText(answer);