this is my code:
That is because you are providing weight . Remove weight and run it again . Weight let:s the textview occupy all the leftover space.