Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineChart fill rendering not working for API < 18 #1100

Closed
MarcSalvat opened this issue Oct 12, 2015 · 3 comments
Closed

LineChart fill rendering not working for API < 18 #1100

MarcSalvat opened this issue Oct 12, 2015 · 3 comments

Comments

@MarcSalvat
Copy link

Just checked with the emulator, #1064 by @tinsukE works fine for Android API 18 and higher but not for lower versions.

It may be related to canvas clipPath not working for hardware accelerated views in API 11-17. Maybe disable hardware acceleration for those or find another way to also solve the "Path too large to be rendered" problem.

@PhilJay
Copy link
Owner

PhilJay commented Oct 12, 2015

The chart actually allows to programmatically enable/disable hardware-acceleration:

chart.setHardwareAccelerationEnabled(boolean enabled)

@MarcSalvat
Copy link
Author

Yeah but it's hard to find out that filling is not working only for devices running api < 18. I saw it because I'm always running an older emulator version for testing.

@JumpMaster
Copy link

Noticed the same issue on JellyBean (16/17) but not on ICS (14/15) or JB (18). Best to set it for all devices prior to "JellyBean MR2, revenge of the beans" just in case though.

if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2)
{
    chart.setHardwareAccelerationEnabled(false);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants