use of com.tmall.wireless.tangram.eventbus.BusSupport in project Tangram-Android by alibaba.
the class LinearScrollView method onMotionEvent.
@Override
public void onMotionEvent(View view, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
if (lSCell != null && lSCell.serviceManager != null) {
BusSupport busSupport = lSCell.serviceManager.getService(BusSupport.class);
ArrayMap<String, String> params = new ArrayMap<String, String>();
params.put("spmcOffset", String.valueOf(lSCell.cells.size()));
busSupport.post(BusSupport.obtainEvent("onMotionEvent", null, params, null));
}
}
}
use of com.tmall.wireless.tangram.eventbus.BusSupport in project Tangram-Android by alibaba.
the class LinearScrollView method onOverScroll.
@Override
public void onOverScroll(View view, float offset) {
if (lSCell != null && lSCell.serviceManager != null) {
BusSupport busSupport = lSCell.serviceManager.getService(BusSupport.class);
ArrayMap<String, String> params = new ArrayMap<String, String>();
params.put("offset", String.valueOf(offset));
busSupport.post(BusSupport.obtainEvent("onOverScroll", null, params, null));
}
}
Aggregations