We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设置最大行数后,在recyclerview划出界面时,不足最大行数时也会显示展开。
The text was updated successfully, but these errors were encountered:
(1)当文本或者view宽度变化, (2)view未测量时导致无法获取内部layout导致宽度为0 解决方法: 添加如下方法
public void setJZText(CharSequence msg) { mOrigText = msg; if (getWidth() == 0 || getMeasuredWidth() == 0) { postDelayed(() -> { setJZText(msg); }, 50); } else { setText(getNewTextByConfig()); } }
修改如下两个方法
public void updateForRecyclerView(CharSequence text, int futureTextViewWidth, int expandState) { mFutureTextViewWidth = futureTextViewWidth; mCurrState = expandState; setJZText(text); } @Override public void setText(CharSequence text, BufferType type) { // mOrigText = text; mBufferType = type; super.setText(text, type); }
公司位于广州扩展B端欢迎各位大神私信自荐,入职送价值6万6的软件
Sorry, something went wrong.
No branches or pull requests
设置最大行数后,在recyclerview划出界面时,不足最大行数时也会显示展开。
The text was updated successfully, but these errors were encountered: