Tilting Char Problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Tue Apr 22, 2014 10:07 am

Yes, a Google Nexus 4 device with Android 4.4.2. That's why I'm asking about the specification or brand and model of the device with which you reproduce the problem. Can you reproduce the problem with different devices?
Device Name: Cherrymobile Flare 2X
1.2GHz Quad Core Qualcomm Snapdragon MSM8225Q Processor
Android 4.1.2
4-Inch 800x480 Pixel Capacitive Display or 233 Pixels per Inch
3-Point Multi-touch
Adreno 203 GPU
1GB RAM
4GB Internal Storage
8 Megapixel Autofocus Main Camera with LED Flash
VGA Front Camera
Dual Sim/Dual Standby
WiFi and WiFi Hotspot
3G, EDGE, GPRS and GSM Networks
GPS
Bluetooth
3.5mm Audio Jack
FM Radio
1,500 mAh Li-ion Battery
I think it's pretty clear how the problem should be reproduced. I wonder if one has to press the page navigation buttons many times before it occurs. Anyway, if you send the video I'll watch it and try to do the same here.
Sure, Ill follow-up on that.

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

Re: Tilting Char Problem

Post by Narcís » Tue Apr 22, 2014 10:25 am

Hi JAP,

Ok, thanks. I tried creating an emulator with a similar specifications but couldn't reproduce the problem there either. Can you reproduce the problem with different devices? I'll also try to test with some other devices. That's the emulator I created. Shouldl I change anything? Did you reproduce the problem with a similar emulator?
Cherrymobile.jpg
Cherrymobile.jpg (43.1 KiB) Viewed 17429 times
Thanks in advance.
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

JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Tue Apr 22, 2014 1:05 pm

Ok, thanks. I tried creating an emulator with a similar specifications but couldn't reproduce the problem there either. Can you reproduce the problem with different devices? I'll also try to test with some other devices. That's the emulator I created. Shouldl I change anything? Did you reproduce the problem with a similar emulator?
I think the emulator settings is correct. I haven't test it in an emulator because it's too slow and the emulator itself is hardly starting during debugging. I sent a video regarding my problem. Hope it helps.

By the way, everything is normal until one time where the problem occurs but I could not trace what's causing the problem.

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

Re: Tilting Char Problem

Post by Narcís » Tue Apr 22, 2014 1:43 pm

Hi JAP,

Thanks for the video. I tried reproducing it again both with the emulator and the device without success. Can you reproduce it with other devices? What about changing Zoom.Style property, for example:

Code: Select all

            tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.Classic; 
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

JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Tue Apr 22, 2014 2:42 pm

Thanks for the video. I tried reproducing it again both with the emulator and the device without success. Can you reproduce it with other devices? What about changing Zoom.Style property, for example:

Code: Select all

            tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.Classic;

Hey, It solves the problem, but is there any way that the zooming feature wouldn't be compromise?

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

Re: Tilting Char Problem

Post by Narcís » Tue Apr 22, 2014 2:49 pm

Hi Jap,
JAP wrote: Hey, It solves the problem, but is there any way that the zooming feature wouldn't be compromise?
I'm afraid not. We plan to implement zoom and scrolling with ZoomStyles.Classic but it is still not supported. Did you have the chance to test your application in another device? The problem is related to some devices or some specific Android version, I'm afraid. I have seen this problem in 2 Android 4.1.2 devices: yours and PocketBook SURFpad 2.
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

JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Tue Apr 22, 2014 4:02 pm

I'm afraid not. We plan to implement zoom and scrolling with ZoomStyles.Classic but it is still not supported. Did you have the chance to test your application in another device? The problem is related to some devices or some specific Android version, I'm afraid. I have seen this problem in 2 Android 4.1.2 devices: yours and PocketBook SURFpad 2.
I see, I haven't tried testing my application in another device but does that mean I just need to upgrade my operating system to solve the problem without using "Classic" zoom style?

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

Re: Tilting Char Problem

Post by Narcís » Tue Apr 22, 2014 4:51 pm

JAP wrote:does that mean I just need to upgrade my operating system to solve the problem without using "Classic" zoom style?
Not 100% sure, just an hypothesis. However, it looks like to be the common denominator in the two devices where this occurred.
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

JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Wed Apr 23, 2014 2:09 am

Not 100% sure, just an hypothesis. However, it looks like to be the common denominator in the two devices where this occurred.
That is because your PocketBook SURFpad 2 which also runs in Android 4.1.2 re-produced the problem?

Since I cannot use the zoom feature for the time being, what approach can you suggest if I would like to view the whole chart (all pages) in one container or UI control?

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

Re: Tilting Char Problem

Post by Narcís » Wed Apr 23, 2014 8:12 am

Hi JAP,

I tried your project with a Google Nexus 7 (2012) with Android 4.4.2 and couldn't reproduce it either.
JAP wrote: That is because your PocketBook SURFpad 2 which also runs in Android 4.1.2 re-produced the problem?
No, not ours, another client's. See this thread for further details.
JAP wrote: Since I cannot use the zoom feature for the time being, what approach can you suggest if I would like to view the whole chart (all pages) in one container or UI control?
A few options here:

1. Try using TChart outside the ScrollView. This is the other common denominator with the other instance of this issue. It looks like ScrollView is not strictly necessary in your project.
2. Try upgrading the Android version in your device.
3. Try if it occurs with the devices where the application will run.
4. Use ZoomStyles.Classic.
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

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

Re: Tilting Char Problem

Post by Narcís » Wed Apr 23, 2014 8:53 am

Hi JAP,
Narcís wrote: 1. Try using TChart outside the ScrollView. This is the other common denominator with the other instance of this issue. It looks like ScrollView is not strictly necessary in your project.
Continuing with this, commenting out the ScrollView related code at FetchWaveformLayout.axml does exactly the same as with the ScrollView on it:

Code: Select all

        <!--<ScrollView
            p1:minWidth="25px"
            p1:minHeight="25px"
            p1:layout_width="match_parent"
            p1:layout_height="match_parent"
            p1:id="@+id/scrollView1"
            p1:fillViewport="true">
        -->            
            <LinearLayout
                p1:orientation="horizontal"
                p1:minWidth="25px"
                p1:minHeight="25px"
                p1:layout_width="match_parent"
                p1:layout_height="match_parent"
                p1:id="@+id/linearLayout3" />
        <!--</ScrollView>-->
This is how it looks like. Notice the layout is not looking very good in a Nexus 7 tablet. Anyway, it was exactly like this with the ScrollView.
device-2014-04-23-105140.png
device-2014-04-23-105140.png (129.39 KiB) Viewed 17392 times
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

JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Wed Apr 23, 2014 11:53 am

No, not ours, another client's. See this thread for further details.
I see, I guess I'll have to try deploying it to other devices.

A few options here:

1. Try using TChart outside the ScrollView. This is the other common denominator with the other instance of this issue. It looks like ScrollView is not strictly necessary in your project.
2. Try upgrading the Android version in your device.
3. Try if it occurs with the devices where the application will run.
4. Use ZoomStyles.Classic.
Thank you for the suggestions I'll be doing those things to fully solve the tilting problem.

Continuing with this, commenting out the ScrollView related code at FetchWaveformLayout.axml does exactly the same as with the ScrollView on it:
With the scrolling question, Yes the ScrollView codes in the project is not utilized because I'm having a hard time implementing it. Do you have any suggestion how to scroll through the whole chart horizontally with only a ScrollView control.

This is how it looks like. Notice the layout is not looking very good in a Nexus 7 tablet. Anyway, it was exactly like this with the ScrollView.
Correctly if I'm wrong because I'm still seeing the page numbering in the picture does the graph in the picture actually scrolls?


Also, how about generating a view that would show the whole chart without pages and without removing the existing features?

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

Re: Tilting Char Problem

Post by Narcís » Wed Apr 23, 2014 12:51 pm

Hi JAP
JAP wrote: With the scrolling question, Yes the ScrollView codes in the project is not utilized because I'm having a hard time implementing it. Do you have any suggestion how to scroll through the whole chart horizontally with only a ScrollView control.
It might be related to what we discussed here.
JAP wrote: Correctly if I'm wrong because I'm still seeing the page numbering in the picture does the graph in the picture actually scrolls?
Yes, it scrolls as per the ZoomStyles.FullChart functionality.
JAP wrote: Also, how about generating a view that would show the whole chart without pages and without removing the existing features?
Yes, you should just set Page.MaxPointsPerPage to zero, which means it's automatic.
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

JAP
Newbie
Newbie
Posts: 30
Joined: Tue Sep 17, 2013 12:00 am

Re: Tilting Char Problem

Post by JAP » Wed Apr 23, 2014 11:51 pm

It might be related to what we discussed here.
I see, i'll check it out again.

Yes, it scrolls as per the ZoomStyles.FullChart functionality.
But with just using the ZoomStyles.Classic, how can I utilize the ScrollView to see the whole chart by scrolling horizontally?

Yes, you should just set Page.MaxPointsPerPage to zero, which means it's automatic.
I'll be adding another button for that feature. Set Page.MaxPointsPerPage to zero then view the chart in a container?

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

Re: Tilting Char Problem

Post by Narcís » Thu Apr 24, 2014 7:49 am

Hi JAP,
JAP wrote: But with just using the ZoomStyles.Classic, how can I utilize the ScrollView to see the whole chart by scrolling horizontally?
You can do it as in the thread we spoke about that. There's also an example in the other thread I pointed you.
JAP wrote: I'll be adding another button for that feature. Set Page.MaxPointsPerPage to zero then view the chart in a container?
Not sure about what you want to achieve with this. Could you please provide more information?

Thanks in advance.
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