Code example for BaseInputConnection

0
            outAttrs.initialSelEnd = outAttrs.initialSelStart = -1;
            outAttrs.label = "";
            outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE | EditorInfo.IME_FLAG_NO_EXTRACT_UI;
            outAttrs.inputType = InputType.TYPE_NULL;
 
            return new BaseInputConnection (this, false);
        } 
 
        //============================================================================== 
        @Override 
        protected void onSizeChanged (int w, int h, int oldw, int oldh)
        { 
            super.onSizeChanged (w, h, oldw, oldh);
            viewSizeChanged(); 
        } 
 
        @Override 
        protected void onLayout (boolean changed, int left, int top, int right, int bottom)
        { 
            for (int i = getChildCount(); --i >= 0;)
                requestTransparentRegion (getChildAt (i));