protected internal override void onFinishInflate() { base.onFinishInflate(); // Setup the filter view mInputFilters = new android.text.InputFilter[] { new android.text.InputFilterClass .AllCaps() }; mHint = (android.widget.EditText)findViewById([email protected]); if (mHint == null) { throw new System.InvalidOperationException("DialerFilter must have a child EditText named hint" ); } mHint.setFilters(mInputFilters); mLetters = mHint; mLetters.setKeyListener(android.text.method.TextKeyListener.getInstance()); mLetters.setMovementMethod(null); mLetters.setFocusable(false); // Setup the digits view mPrimary = (android.widget.EditText)findViewById([email protected]); if (mPrimary == null) { throw new System.InvalidOperationException("DialerFilter must have a child EditText named primary" ); } mPrimary.setFilters(mInputFilters); mDigits = mPrimary; mDigits.setKeyListener(android.text.method.DialerKeyListener.getInstance()); mDigits.setMovementMethod(null); mDigits.setFocusable(false); // Look for an icon mIcon = (android.widget.ImageView)findViewById([email protected]); // Setup focus & highlight for this view setFocusable(true); // XXX Force the mode to QWERTY for now, since 12-key isn't supported mIsQwerty = true; setMode(DIGITS_AND_LETTERS); }
protected internal override void onFinishInflate() { base.onFinishInflate(); // Setup the filter view mInputFilters = new android.text.InputFilter[] { new android.text.InputFilterClass .AllCaps() }; mHint = (android.widget.EditText)findViewById([email protected]); if (mHint == null) { throw new System.InvalidOperationException("DialerFilter must have a child EditText named hint" ); } mHint.setFilters(mInputFilters); mLetters = mHint; mLetters.setKeyListener(android.text.method.TextKeyListener.getInstance()); mLetters.setMovementMethod(null); mLetters.setFocusable(false); // Setup the digits view mPrimary = (android.widget.EditText)findViewById([email protected]); if (mPrimary == null) { throw new System.InvalidOperationException("DialerFilter must have a child EditText named primary" ); } mPrimary.setFilters(mInputFilters); mDigits = mPrimary; mDigits.setKeyListener(android.text.method.DialerKeyListener.getInstance()); mDigits.setMovementMethod(null); mDigits.setFocusable(false); // Look for an icon mIcon = (android.widget.ImageView)findViewById([email protected]); // Setup focus & highlight for this view setFocusable(true); // XXX Force the mode to QWERTY for now, since 12-key isn't supported mIsQwerty = true; setMode(DIGITS_AND_LETTERS); }