Android 查看更多 TextView實現

在公司開發過程當中,須要用到固定行數的展開查看更多的控件,在網上找了很久,都沒有找到,因而花了半天時間實現了一個,在此作下記錄,主要有幾個關鍵的地方:html private Layout makeTextLayout(String text) { return new StaticLayout(text, getPaint(), getWidth() - getPaddingLe
相關文章
相關標籤/搜索