com.taobao.weex.ui.view.gesture.WXGestureObservable Java Examples
The following examples show how to use
com.taobao.weex.ui.view.gesture.WXGestureObservable.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WXComponent.java From ucar-weex-core with Apache License 2.0 | 6 votes |
public final void removeAllEvent() { if (mDomObj == null || mDomObj.getEvents().size() < 1) { return; } for (String event : mDomObj.getEvents()) { if(event == null){ continue; } removeEventFromView(event); } mAppendEvents.clear();//only clean append events, not dom's events. mGestureType.clear(); mGesture = null; if (getRealView() != null && getRealView() instanceof WXGestureObservable) { ((WXGestureObservable) getRealView()).registerGestureListener(null); } if(mHost != null) { mHost.setOnFocusChangeListener(null); if (mHostClickListeners != null && mHostClickListeners.size() > 0) { mHostClickListeners.clear(); mHost.setOnClickListener(null); } } }
Example #2
Source File: WXComponent.java From weex-uikit with MIT License | 6 votes |
public final void removeAllEvent() { if (mDomObj == null || mDomObj.getEvents().size() < 1) { return; } for (String event : mDomObj.getEvents()) { removeEventFromView(event); } mAppendEvents.clear();//only clean append events, not dom's events. mGestureType.clear(); wxGesture = null; if (getRealView() != null && getRealView() instanceof WXGestureObservable) { ((WXGestureObservable) getRealView()).registerGestureListener(null); } if(mHost != null) { mHost.setOnFocusChangeListener(null); mHost.setOnClickListener(null); } }