Simulate ScrollPager on Android?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jeremy Johnson
Newbie
Newbie
Posts: 16
Joined: Wed Feb 27, 2013 12:00 am

Simulate ScrollPager on Android?

Post by Jeremy Johnson » Fri Aug 23, 2013 10:09 pm

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

Jeremy Johnson
Newbie
Newbie
Posts: 16
Joined: Wed Feb 27, 2013 12:00 am

Re: Simulate ScrollPager on Android?

Post by Jeremy Johnson » Mon Aug 26, 2013 6:00 pm

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!

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Simulate ScrollPager on Android?

Post by Yeray » Tue Aug 27, 2013 2:41 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Jeremy Johnson
Newbie
Newbie
Posts: 16
Joined: Wed Feb 27, 2013 12:00 am

Re: Simulate ScrollPager on Android?

Post by Jeremy Johnson » Thu Aug 29, 2013 2:10 pm

I got this working with mouse events and a ColorBand on WPF, which should port over to touch events and ColorBand on Android. Thanks!

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Simulate ScrollPager on Android?

Post by Yeray » Thu Aug 29, 2013 3:31 pm

Hi,

Great! Thanks for telling us how have you solved it!
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Thinkpower
Newbie
Newbie
Posts: 11
Joined: Tue Feb 19, 2013 12:00 am

Re: Simulate ScrollPager on Android?

Post by Thinkpower » Mon Mar 17, 2014 3:00 pm

Hi Jeremy,

We are also working on this issue. Would you please share your code with us? We would appreciate your assistance!
Thank you!

Thinkpower
Newbie
Newbie
Posts: 11
Joined: Tue Feb 19, 2013 12:00 am

Re: Simulate ScrollPager on Android?

Post by Thinkpower » Tue Mar 18, 2014 10:37 am

Hi Support,

How can I also implement this by the way Jeremy mentioned?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Simulate ScrollPager on Android?

Post by Narcís » Tue Mar 18, 2014 10:51 am

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?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Thinkpower
Newbie
Newbie
Posts: 11
Joined: Tue Feb 19, 2013 12:00 am

Re: Simulate ScrollPager on Android?

Post by Thinkpower » Tue Mar 18, 2014 2:46 pm

can you show me a sample?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Simulate ScrollPager on Android?

Post by Narcís » Thu Mar 20, 2014 9:53 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply