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

Discussion in 'Application Development' started by at_198x, Oct 2, 2009.

  1. at_198x

    at_198x New Member
    5

    Oct 2, 2009
    1
    0
    5
    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.
     

    Advertisement

Share This Page

Loading...