TextView go off screen in RelativeLayout

前端 未结 3 770
难免孤独
难免孤独 2021-01-24 16:59

Here is the layout:





        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 17:19

    This is because your textView width is wrap_content. So means if your text is too long then it will be out of screen. So better way is to set it to match_parent.

    And Yes if it is too long then you can set MaxLines for it.

提交回复
热议问题