File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
library_tagflow/src/main/java/com/framework/tagflow Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -418,13 +418,18 @@ open class MultiTagFlowLayout @JvmOverloads constructor(
418
418
true 标识已经刷新数据了,特殊判断
419
419
*/
420
420
if (isNotifyData){
421
- mRlShowMore.visibility = View .VISIBLE
422
- // 表示已经展开了
423
- if (isFolded){
421
+ if (finalLine <= 3 ) {
424
422
layoutParams.height = getLineHeight() * finalLine
423
+ mRlShowMore.visibility = View .GONE
425
424
}else {
426
- // 设置默认展开高度(一个item 高度*多少行)
427
- layoutParams.height = getLineHeight()* defaultRows
425
+ mRlShowMore.visibility = View .VISIBLE
426
+ // 表示已经展开了
427
+ if (isFolded){
428
+ layoutParams.height = getLineHeight() * finalLine
429
+ }else {
430
+ // 设置默认展开高度(一个item 高度*多少行)
431
+ layoutParams.height = getLineHeight()* defaultRows
432
+ }
428
433
}
429
434
mControlScrollView.layoutParams = layoutParams
430
435
}else {
You can’t perform that action at this time.
0 commit comments