Android TextView Text not getting wrapped

前端 未结 24 1729
时光说笑
时光说笑 2020-11-27 02:51

Can anyone tell me what\'s going wrong with the text? Text longer than one line doesn\'t wrap to the next line but goes beyond the screen.

Following is the code:

24条回答
  •  不知归路
    2020-11-27 03:17

    I could not get any of these solutions working when using a TableLayout>TableRow>TextView. I then found TableLayout.shrinkColumns="*". The only other solution that worked was forcing the TextView to layout_width:250px etc but i don't like forcing widths like that.

    Try something like this if working with tables.

                
    

    Note you need shrinkColumns="*"

    This is obviously within a . So something like

    references:

    TableLayout

    http://code.google.com/p/android/issues/detail?id=4000

    Hope that helps someone.

提交回复
热议问题