Multiline TextView in Android?

前端 未结 20 1814
南方客
南方客 2020-11-29 17:26

I did like below in xml


    

        
20条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 18:06

    I used:

    TableLayout tablelayout = (TableLayout) view.findViewById(R.id.table);
    tablelayout.setColumnShrinkable(1,true);
    

    it worked for me. 1 is the number of column.

提交回复
热议问题