I am working on Scichart Android application .I am using two Scichart surfaces on a single activity ,I want to handle click event on scichart surface so that,whenever I click on surface it will start a new activity which contains a single Scichart.
- hamza kiani asked 5 years ago
- You must login to post comments
Hi Hamza Kiani,
Well the preferred way to do this is to use ChartModifier API to handle click and create custom modifier:
class CustomModifier extends GestureModifierBase {
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
// do something
return true;
}
}
Then add for desired chart:
surface.getChartModifiers().add(new CustomModifier());
Is this suitable for your needs?
Best regards,
Yura
- Yura Khariton answered 5 years ago
- Thanks it worked
- You must login to post comments