Skip to content

Commit ab1af7d

Browse files
author
TimChen
committed
feat: 新增 hideRefreshLayout 功能, 隱藏頭部與底部的刷新UI
1 parent a7e5318 commit ab1af7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android-support/src/main/java/co/bxvip/refresh/BxRefreshLayout.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,11 @@ public void setHeaderView(final IHeaderView headerView) {
601601
}
602602
}
603603

604+
public void hideRefreshLayout() {
605+
if (mHeadLayout != null) mHeadLayout.setVisibility(GONE);
606+
if (mBottomLayout != null) mBottomLayout.setVisibility(GONE);
607+
}
608+
604609
/**
605610
* 设置固定在顶部的header
606611
*/

0 commit comments

Comments
 (0)