I’m trying to implement custom view to display the text, but there is a problem with drawing the text (text is red, view’s background is green):

The source code is on the pastebin.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of drawing the text at the top of the view with(L 91) :
canvas.drawText(mText, 0, mText.length() - 1, 0, 0, mPaint);try:
canvas.drawText(mText, 0, mText.length() - 1, 0, canvas.getHeight(), mPaint);Note that the align settings are stored in the
Paintvariable. So you should probably change that if your text still isn’t drawn correctly.