To my surprise I\'ve just discovered that drawLine and drawRect don\'t include the ending position, i.e.:
canvas.drawLine(100, 100, 100, 100, paint);
Your rect should work fins, try to add some background, your line is now kust a pixel, the two last parameter is not the length, its the end posision.