[android-developers] Re: Canvas.drawText failing to draw on a second call

2009-07-11 Thread Casper
any clue, how to resolve this problem On Jul 3, 6:14 pm, Casper wrote: > Hi > > thanks for the reply. > > i even tried that. > Interesting part is, except cavas.drawText for drawing text any other > paint call is working. if you try by your self, you will see the same > thing happening. > i adde

[android-developers] Re: Canvas.drawText failing to draw on a second call

2009-07-06 Thread Casper
Hi thanks for the reply. i even tried that. Interesting part is, except cavas.drawText for drawing text any other paint call is working. if you try by your self, you will see the same thing happening. i added a statement for canvas.drawLine(); this is working on every call. But canvas.drawText i

[android-developers] Re: Canvas.drawText failing to draw on a second call

2009-07-04 Thread Casper
I tried removing canvas.restore(), but its the same behaviour. Must be something else is wrong. i added an another statement for testing purpose canvas.drawLine, and it is working as expected, but not drawText. I don't know the reason why the first time it is working and from second time on, its

[android-developers] Re: Canvas.drawText failing to draw on a second call

2009-07-03 Thread MrChaz
you're calling canvas.restore() which clears out all changes since the last call of canvas.save() I'd try taking out that line. On Jul 2, 8:57 pm, Casper wrote: > public class TCheckBox extends CheckBox{ > public void onDraw(Canvas canvas){ > >                Paint tTextPaint = new Paint(); >