From playing about with this a bit, I think that layout_height is flexible - a preferred height but will still expand/shrink with the content - and height is a definite value.
What's happening in your case is that the TextView is wrapping around the Test text but still using the 48dp paddingTop attribute.