예제 #1
0
 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));
   }
 }
예제 #2
0
 @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);
     }
   }
 }