I don't understand the difference between the two methods drawPaint
and drawText
? If I want to define how a customed TextView
, and that I want to define its own Typeface
and TextColor
: do I have to define a textPaint
object then use methods like setTypeface
and setColor
then call drawPaint
on onDraw
method on my canvas or do I have to call directly drawText
?
Asked
Active
Viewed 67 times
0

akari
- 617
- 1
- 11
- 32
-
1did you read the documentation for drawPaint and drawText? – Blackbelt May 19 '14 at 13:32
-
what does drawPaint have to do with drawText ? – pskink May 19 '14 at 13:32
-
In this documentation http://developer.android.com/training/custom-views/custom-drawing.html it said that a Paint objectn should defined in order to define how the object should be defined. – akari May 19 '14 at 13:42
-
I use drawText in order to draw the text of my custom View – akari May 19 '14 at 13:43