Page 1 of 1

Strange Behaviour Pro 2014 on XE5 and Android

Posted: Thu Jan 08, 2015 6:58 pm
by 16571143
Hi

Strange Behaviour Pro 2014 on XE5 and Android -

I wrote a small program to test my newly bought Pro 2014 version but the chart can only show one quarter of the screen even I use align client. Even I manually set the width and height, the max size of the chart is only one quarter of the Androd Phone or Tablet screen. I tested it on my Nexus 7 and Android phone, same problem happen.

Is this a bug or I need to set up some parameter to get it done? The Lite version that comes with the XE5 did not have this issue. Please advise

Best Regards
Ming

Re: Strange Behaviour Pro 2014 on XE5 and Android

Posted: Fri Jan 09, 2015 11:55 am
by narcis
Hi Ming,

Does this work fine with other RAD Studio versions? Is a XE5 specific problem? I don't have an XE5 installation at hand now but works fine with XE7 for me here with the latest TeeChart version.

Re: Strange Behaviour Pro 2014 on XE5 and Android

Posted: Mon Jan 12, 2015 6:04 pm
by 16571143
XE7 was ok so probably it's XE5 specific.

Re: Strange Behaviour Pro 2014 on XE5 and Android

Posted: Tue Jan 13, 2015 8:43 am
by narcis
Hi Ming,

What about using a TPanel instead of a TChart control? Does this reproduce the problem as well?

Thanks in advance.

Re: Strange Behaviour Pro 2014 on XE5 and Android

Posted: Wed Jan 14, 2015 9:59 am
by yeray
Hello,

We found differences in the behaviour when building a simple application with the Android SDK shipped with the IDE and with an external SDK installed on the same machine. The first works fine while the second gives us a blank screen as a result.

Re: Strange Behaviour Pro 2014 on XE5 and Android

Posted: Wed Jan 14, 2015 2:17 pm
by yeray
Hello again,

Some more info about the test we are doing here.
There seems to be some difference between XE5 and XE7 because the same code below gives a correctly aligned chart in XE7 but not in XE5, both using the latest TeeChart version v2014.12 (images generated using the internal sources):

Code: Select all

uses FMXTee.Chart, FMXTee.Constants;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=TAlignLayout.alTop;

  Chart1.Title.Text.Text:=TeeMsg_Version;
end;
TeeChart_2014.14_XE5.png
TeeChart_2014.14_XE5.png (8.43 KiB) Viewed 12446 times
TeeChart_2014.14_XE7.png
TeeChart_2014.14_XE7.png (10.94 KiB) Viewed 12446 times
On the other hand, using the previous TeeChart v2014.11 in XE5, the chart seems to respect the alignment:
TeeChart_2014.11_XE5.png
TeeChart_2014.11_XE5.png (9.63 KiB) Viewed 12451 times
I see you added this to the public tracker (ID 1071). I've just confirmed it and linked to this thread.
In the meanwhile, could you please check if TeeChart v2014.11 fits your requirements?

PS: All the tests have been made with an ARM v7, Android 4.4.2, 480x800 hdpi emulator.