Text drawn by mPaint.drawText looks different with the default TextView?

by mathcat » Mon, 04 Apr 2011 21:37:40 GMT


Sponsored Links
 In a custom view extending View, I call mPaint.drawText in the onDraw
method, with a new Paint object mPaint. But the text drawn looks
different to the default TextView, the lines are thinner and not
smooth(like rope bitten by some insects). I just want it to be the
same look as TextView.How to do that? Sorry I`m not quite familiar
with Android graphics.

-- 



Re: Text drawn by mPaint.drawText looks different with the default TextView?

by skink » Mon, 04 Apr 2011 21:42:07 GMT


 


You can exterminate the insects with special weapon called
antyaliasing.

pskink

-- 


Sponsored Links


Re: Text drawn by mPaint.drawText looks different with the default TextView?

by mathcat » Mon, 04 Apr 2011 21:46:03 GMT


 Thank you skink!

But why the lines are thinner? how to make them the same as TextView?






-- 



Re: Text drawn by mPaint.drawText looks different with the default TextView?

by mathcat » Mon, 04 Apr 2011 21:48:00 GMT


 Thank skink!

But why the lines are thinner than TextView? How to handle that?






-- 



Re: Text drawn by mPaint.drawText looks different with the default TextView?

by lbendlin » Mon, 04 Apr 2011 23:26:24 GMT


Other Threads

1. NexusOne newbie and disappointed... here is why...

you should really try to send this to android-discuss instead. This is a
forum for application developers :-)




> 

2. NexusOne newbie and disappointed... here is why...

Hi there...

I am a iPhone user and Developer (FreePing/SuperPing) and I love my
iPhone... I say that with the view of a developer, engineer and user.
The iPhone has its limits (App Reviews... eg) but it's the best
hardware & software I've ever had for a smartphone.

Now since we are planing to implement an app both for iPhone OS and
Android I bought a NexusOne and after one day I would like to share my
thoughts about it and I am curious what you guys think about the
NexusOne:

1 (++) first, the screen is beautiful
2 (- -)  The touchscreen reacts with a lag behind (relative to an
iPhone 3GS). I touch and swipe my finger over a list and it takes time
the list follows me.
3 (- -) I have quite a lot of "false positives" in terms of clicks
instead of swipes... I swipe over the display and more objects than I
want get highlighted (yellow/orange glow) even if I swipe with the
finger. it really shouldnt
4 (---) I never, really never, had to touch twice of more the screen
on my iPhone; but with the NexusOne its quite common. Especially the
"Illuminated capacitive soft keys" dont get touched.
5 (--) I am new to the platform, but the UI paradigm is sometimes just
against the user (scroll up a list, start/end of lists
indication, ...)

there are other things that are anoying but the "touch" thing is just
critical and it should be better, really. Apple does a great job in
this area and I'd expect that a device with this power...

Beside that its a great platform and I like the SDK, its emulator
(qemu) and things like dalvik (just to have the right tool for the
right problem).

-- 

3. AccountManager sync policy

4. Finally Hit a Wall

5. installing application silently in android

6. Wifi capability question

7. XY picker in emulator?