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.
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.