What is the difference between getHeight() and getMeasureHeight()

Last Updated:

  1. at_198x

    at_198x New Member This Topic's Starter

    Oct 2, 2009
    Likes Received:
    Hi everyone.
    I am a newbie in developing Android application. When i read a example about a custom TextView (extends TextView), on the overriding of onDraw method, there're some code line i still don't get:
    canvas.drawLine(margin, 0, margin, getMeasureHeight(), marginPaint);
    The margin and marginPaint is no problem, they are an int and a Paint which have got values, but i don't understand getMeasureHeight(). I tried the explain of Android webpage, but they are really complicated.
    Does anyone can tell me what is the difference between getHeight() and getMeasureHeight(), in a easier way???
    Thank you, and please don't get mad if this is a annoying question.


Share This Page