Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
整理了下代码,根据
tag
的scale
进行排序,改变子View在Z轴上的层级。为了不影响
TagCloud
中原先用于计算的数组,引入了新的排序数组tagCloudSort
。在
TagCloudView
中的onLayout
中多次调用child.bringToFront();
由此可能会带来较严重的额外性能开销,如果有更好的解决方式还请考虑改写。
初次PR,可能会有各种问题,非常抱歉,还请谨慎审核 :)