apparantly so,
I replaced 4 more string allocations in the drawing routine, the
strings are very dynamic, so i have to update the values each time.
public final char[] legendText = new char[] {'0', '0', '0', '%'};
public int legendOffset = 2;
public int legendLength = 0;
public void UpdateLegendText(int value) // a value in pct between 0
and 100
{
legendOffset = 3;
while (value != 0 && legendOffset != 0)
{
--legendOffset;
legendText[legendOffset] = (char)('0' + value % 10);
value /= 10;
}
legendLength = legendText.length-legendOffset;
}
I went from the 170-350 to 135-280... 4 string allocations.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---