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 1107

Summary: Dashed lines show as solid in Android
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: AndroidAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://stackoverflow.com/questions/28176570/how-to-draw-colorline-in-teechart-with-dash-style/28197326#28197326
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2015-01-28 11:27:27 EST
Dashed lines work well in Android 2 but they are drawn as solid lines in Android 4 and up.
Comment 1 yeray alonso 2015-02-17 07:36:16 EST
I initially modified the TeeChart sources to disable the Hardware Acceleration internally when a pen is set to DASH style. But setLayerType was implemented in API 11 so, to keep TeeChart support from API 7, I had to remove it and let the developer to do this when necessary.
https://developer.android.com/reference/android/view/View.html#setLayerType%28int,%20android.graphics.Paint%29