I have a strange issue with the standard method canvas.drawCircle.
While I run exactly the same code on a Samsung Galaxy S3 with Android 4.0.4 and on another S2 with 2.1 it works without problems. The same code on an Acer 500 tablet with 4.0.3 does not paint anything when calling drawCircle and drawPath.
This is the code:
Paint thickLine = new Paint(scalePaint);
thickLine.setStrokeWidth(0.07f);
thickLine.setColor(Color.argb(0xff, 0xff, 0x36, 0x33));
thickLine.setFlags(Paint.ANTI_ALIAS_FLAG);
canvas.drawLine(0.5f, 0.5f, 0.1f, 0.1f, thickLine);
canvas.drawCircle(0.5f, 0.5f, 0.15f, thickLine);
But the drawLine works on all three devices!
Also just to mention – the code worked before – then I changed the standard Fragments to SherlockFragments and modified the code in the app in several places – always testing on S3. So I do not know at what stage it started to not work anymore on the Acer.
I also used the old unchanged drawing class that contains this code (before I made all changes to the app) and copied it into the new version which uses Sherlock now – even this stage of the project code does not work anymore as described.
So I guess it might have something to do with Sherlock – however, I do not have any idea how and why – and if at all….
Anyone had some similar experience where drawLine works but drawCircle and drawPath do not?
– with or without use of Sherlock
Many thanks
almost unbelieveble but true, just change the target setting (or remove it alltogether) and it will work – it did in my case 🙂