Page 1 of 1
Simulate ScrollPager on Android?
Posted: Fri Aug 23, 2013 10:09 pm
by 15665264
Since it appears that TeeChart for Xamarin.Android doesn't support scroll pager, I'm wondering if there is any way to simulate it? Perhaps using a transparent, movable Gantt that overlays my "overview" series and update the min/max of the "detail" series based upon the Gantt position? Any other ideas?
Thanks,
Jeremy
Re: Simulate ScrollPager on Android?
Posted: Mon Aug 26, 2013 6:00 pm
by 15665264
The Android version lacks the GanttTool, and thus it doesn't seem that there is any way to drag the Gantt rectangle. The RectangleTool is also missing, so that doesn't appear to be a viable option. The ColorBand tool is present, however I don't immediately see a way to make it draggable. (I'm also having trouble binding it to my horizontal axis, although I'm sure this must be possible).
Any suggestions to achieve this effect on Android will be much appreciated!
Re: Simulate ScrollPager on Android?
Posted: Tue Aug 27, 2013 2:41 pm
by yeray
Hi Jeremy,
I've added the possibility to implement the ScrollPager tool for TeeChart .NET for Xamarin.Android (TM63016697).
In the meanwhile, have you tried to use the touch events to implement your own dragging features?
Also, I think the SubChart tool is usable in TeeChart for Xamarin.Android.
Then, you could try to combine this tool and the touch events to implement a custom ScrollPager tool.
Re: Simulate ScrollPager on Android?
Posted: Thu Aug 29, 2013 2:10 pm
by 15665264
I got this working with mouse events and a ColorBand on WPF, which should port over to touch events and ColorBand on Android. Thanks!
Re: Simulate ScrollPager on Android?
Posted: Thu Aug 29, 2013 3:31 pm
by yeray
Hi,
Great! Thanks for telling us how have you solved it!
Re: Simulate ScrollPager on Android?
Posted: Mon Mar 17, 2014 3:00 pm
by 17365127
Hi Jeremy,
We are also working on this issue. Would you please share your code with us? We would appreciate your assistance!
Thank you!
Re: Simulate ScrollPager on Android?
Posted: Tue Mar 18, 2014 10:37 am
by 17365127
Hi Support,
How can I also implement this by the way Jeremy mentioned?
Re: Simulate ScrollPager on Android?
Posted: Tue Mar 18, 2014 10:51 am
by narcis
Hi benlu,
The ScrollPager tool bascially consists of a SubChart tool below the main chart. It is in synch with the main chart setting its bottom axis scales via the ColorBand tool start and end values, which determine the range that will be plotted in the main chart. You should use touch events to change ColorBand start and end values. Have you tried that? Which difficulties did you come across?
Re: Simulate ScrollPager on Android?
Posted: Tue Mar 18, 2014 2:46 pm
by 17365127
can you show me a sample?
Re: Simulate ScrollPager on Android?
Posted: Thu Mar 20, 2014 9:53 am
by narcis
Hi benlu,
There's a problem with SubChartTool (bug
ID87) that doesn't allow doing this for now. We will try to fix the problem.