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. Security application needs developer.

This application is yours for taking.

Phone camera would detect intruder movement, photograph intruder, send 
photograph to remote storage, send text messages asking help, send 
current phone GPS position & resume camera motion detection after 30 
more seconds.  Phone would not indicate security app is operative or 
available.  If thief steals phone, owner would continue to get pictures 
& location of thief.  Application would include all "Find My Iphone" 
functions except needing subscription to external service.

Comparable service at fixed location would cost me >$1200 plus >$45 per 
month.  For <$10 per month, I could add a phone to my account & use it 
for 24 hour security anywhere is cellular service.  Also could use 
existing phone while I sleep.

Please develop this application so I can use it.

Eric
li...@ericelliott.us

--~--~---------~--~----~------------~-------~--~----~

2. Floating button ... ?

Hi,

 

I was wondering whether anyone has written any code to implement a customized 
button that can be placed anywhere on the device screen (probably based on 
coordinates etc.) which will sit on top of a layout.

 

Say, you have a LinearLayout with a couple of vertical sublayouts drawn on a 
background and you want to add a button somewhere on the display.

 

Cheers,

 

Emre


_________________________________________________________________
Stay in the loop and chat with friends, right from your inbox!
http://go.microsoft.com/?linkid=9671354
--~--~---------~--~----~------------~-------~--~----~

3. Please assist with sensors.

4. How to make andorid plugin does not start everything I launch eclipse

5. Emulator taking More time to open main page

6. HTML5 Schedule

7. How to make andorid plugin does not start everything I launch eclipse