Multiline TextView in Android?

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

I did like below in xml


    

        
20条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 18:14

    I just thought I'd add that if you use :

    android:inputType="textMultiLine"

    Then the view stops being clickable. I was trying to get multi line textviews in my slide-drawer menu which obviously needs to respond to clicks.

    The android:singleLine="false" worked fine though.

提交回复
热议问题