Set Text View ellipsize and add view more at end

前端 未结 13 1214

I am trying to set ellipsize of text view. using the following code. I want to add \"view more\" at the end of truncated string after 3 dots. If this would be possible with

13条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 13:17

    Check out my library : https://github.com/AhmMhd/SeeMoreTextView-Android

    
    

    usage:

    TextView seemoreTv = (TextView) findViewById(R.id.textview)
    
    seemoreTv.setContent("some really long text here.")
    

    it also works great on recyclerview.

提交回复
热议问题