Let say I have a bitmap of 100x20(WxH) and I want to draw a text like "Welcome", what does x and y mean? Is (x,y) point the point where it starts to draw, i.e "W" character? How does the alignment(left,center,right) actually effect?
Thanks Don, very nice explaination. Can I ask to which the x and y value refer to, the activity size or the bitmap? I'm working with a widget which an imageview (146x26) I create a bitmap wiith the same size 146x26. According to your post, if I draw a text at 73x26 with center alignment, the text should be draw at the center and bottom of the bitmap/imageview. But when I test it on my phone, it doesn't.