From the tutorial I have created the layout:
public static class LinedEditText extends EditText {
private Rect mRect;
private Paint mPaint;
As it is visible from your code, you are drawing underline
for the edit text
for lines from 0 to count
in your for loop and count
is set to int count = getLineCount();
. So only the existing number of lines in the EditText will be incremented! By changing the number of count you can draw as many underlines as you want!