public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { TiUIHelper.requestSoftInputChange(proxy, v); proxy.fireEvent(TiC.EVENT_FOCUS, getFocusEventObject(hasFocus)); } else { proxy.fireEvent(TiC.EVENT_BLUR, getFocusEventObject(hasFocus)); } }
@Override public void focus() { super.focus(); if (nativeView != null) { if (proxy.hasProperty(TiC.PROPERTY_EDITABLE) && !(TiConvert.toBoolean(proxy.getProperty(TiC.PROPERTY_EDITABLE)))) { TiUIHelper.showSoftKeyboard(nativeView, false); } else { TiUIHelper.requestSoftInputChange(proxy, nativeView); } } }