GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 修复二级刷新 不能使用普通布局作为内容的问题 · ftyangjun/SmartRefreshLayout@e15d3ab

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util
    • SmartUtil.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java‎

Copy file name to clipboardExpand all lines: refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import android.widget.ListView;
1919
import android.widget.ScrollView;
2020

21+
import com.scwang.smart.refresh.layout.api.RefreshComponent;
2122
import com.scwang.smart.refresh.layout.kernel.R;
2223

2324
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
@@ -81,6 +82,9 @@ public static void scrollListBy(@NonNull AbsListView listView, int y) {
8182
}
8283

8384
public static boolean isScrollableView(View view) {
85+
if (view instanceof RefreshComponent) {
86+
return false;
87+
}
8488
return view instanceof AbsListView
8589
|| view instanceof ScrollView
8690
|| view instanceof ScrollingView
@@ -89,6 +93,9 @@ public static boolean isScrollableView(View view) {
8993
}
9094

9195
public static boolean isContentView(View view) {
96+
if (view instanceof RefreshComponent) {
97+
return false;
98+
}
9299
return isScrollableView(view)
93100
|| view instanceof ViewPager
94101
|| view instanceof NestedScrollingParent;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.