Android: Last line of textview cut off

后端 未结 20 1374
北荒
北荒 2020-11-28 02:46

I have a horizontal LinearLayout containing a TextView followed by a Spinner next to it. This LinearLayout is dynamically

20条回答
  •  囚心锁ツ
    2020-11-28 03:09

    My solution was close to the accepted one, but I had to change it to

       android:layout_gravity="fill_vertical"
    

    instead. Otherwise the other rows would have been stretch as well with added line breaks at random places. For example, the biggest row had 4 lines, so another row was changed from

    this is a testphrase

    to

    thi
    s is
    a testph
    rase
    

提交回复
热议问题