Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1263 - Zoom Bug on Android 5.1.0
Summary: Zoom Bug on Android 5.1.0
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Android (show other bugs)
Version: 3.2015.0108
Hardware: Tablet Android
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 09:04 EDT by Tilo
Modified: 2016-02-17 04:21 EST (History)
3 users (show)

See Also:
Chart Series: Bar
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tilo 2015-08-04 09:04:16 EDT
Hi, 

on our application we create a Chart with a bar series as follow:

private void createBarChart(int leakState)
{
  this.chart = new TChart(this.getContext());
  this.exampleBar = new Bar();

  //TODO Test Ende
  this.exampleBar.clear();
  this.exampleBar.add(new int[]{40, 20, 49, 60});
  this.chart.addSeries(this.exampleBar);
  //TODO Test
  this.chart.getZoom().setZoomStyle(Zoom.ZoomStyle.INCHART);

  LinearLayout chartLayout = (LinearLayout) this.findViewByID(R.id.layout_logger_detail_chart);
  chartLayout.addView(this.chart);
  chartLayout.setMinimumWidth(800);
}

If we zoom on the chart, the activity crashes, but only on Android 5.0 up to 5.1. If we do the same on Android 4.4.4 everything works fine.
Comment 1 yeray alonso 2015-10-06 05:37:53 EDT
Try disabling Hardware Acceleration in those platforms where it crashes. Ie:

  if (Build.VERSION.SDK_INT>10)
    tChart1.setLayerType(View.LAYER_TYPE_SOFTWARE, null);