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
#ExpandableTextView.java
/** * 设置内容 * * @param content */ public void setContent(final String content) { mContent = content; if (isAttached) doSetContent(); } /** * 实际设置内容的 */ private void doSetContent() { if (mContent == null) { return; } currentLines = mLimitLines; if (mWidth <= 0) { if (getWidth() > 0) mWidth = getWidth() - getPaddingLeft() - getPaddingRight(); } if (mWidth <= 0) { if (retryTime > 10) { setText(DEFAULT_CONTENT); } this.post(new Runnable() { @Override public void run() { retryTime++; setContent(mContent.toString()); } }); } else { setRealContent(mContent.toString()); } }
没人觉得这段代码有问题么,一直在往主线程抛消息
The text was updated successfully, but these errors were encountered:
这个地方处理不当会导致主线程的IdleHandler不被执行
Sorry, something went wrong.
No branches or pull requests
#ExpandableTextView.java
没人觉得这段代码有问题么,一直在往主线程抛消息
The text was updated successfully, but these errors were encountered: