Linuxkey007 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

ViewPager plus Hardware Acceleration off leads to strange drawing issue #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add the charts to a ViewPager (see attached project) and have 
android:hardwareAccelerated="false" in the manifest
2. Swipe right once and then swipe left again. Pie chart is as expected.
3. Swipe right twice and then swipe twice left again. Pie chart is drawn half 
outside the view.

What is the expected output? What do you see instead?

I expect the pie chart to be drawn within the view.

Please provide a source code snippet that we can use to replicate the issue.

It can be seen in this project. Toggle it working/not working by enabling or 
disabling hardwareAccelerated=""

https://github.com/steprobe/AChartsAnalysis

What version of the product binary library are you using?

svn checkout at revision 452

Please provide any additional information below.

Tested on device Samsung Galaxy Nexus. I have videos of the issue, attached. 
Apologies for low quality but I needed to keep the size down to attach.

Original issue reported on code.google.com by stephen....@gmail.com on 18 Oct 2012 at 10:20

Attachments:

GoogleCodeExporter commented 9 years ago
I am having exactly the same problem. I am using ViewPager in Android 2.2 and 
it does not support hardware acceleration. So, can you please give me some 
other solution to correct this problem?

Original comment by kkhe...@gotechark.com on 21 Nov 2012 at 7:10

GoogleCodeExporter commented 9 years ago
Have you tried to do renderer.setInScroll(true) ?

Original comment by dandrome...@gmail.com on 14 Jan 2013 at 6:11

GoogleCodeExporter commented 9 years ago
See this: 
http://stackoverflow.com/questions/11495140/a-chart-gallery-with-viewpagerindica
tor-and-achartengine

Original comment by dandrome...@gmail.com on 14 Jan 2013 at 7:55

GoogleCodeExporter commented 9 years ago
setInScroll(true) solved the problem.. Thanks.

Original comment by kkhe...@gotechark.com on 15 Jan 2013 at 6:12

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 15 Jan 2013 at 10:03