Comments (1)
android.support.v4.widget.SwipeRefreshLayout
is not supported as a parent ViewGroup. The parent ViewGroup must be a CoordinatorLayout, FrameLayout, or RelativeLayout in order for the FastScroller to be properly displayed on top of the RecyclerView.
FastScrollRecyclerView adds the FastScroller view to the parent ViewGroup and sets the LayoutParams to align correctly with the RecyclerView. SwipeRefreshLayout can only support one direct child and therefore cannot be supported as a parent ViewGroup.
However, you could insert a FrameLayout as the direct child of the SwipeRefreshLayout:
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.l4digital.fastscroll.FastScrollRecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</android.support.v4.widget.SwipeRefreshLayout>
from fastscroll.
Related Issues (20)
- FastScrollRecyclerView leaks parent view HOT 2
- Scroll the list the thumb never reached to the end when items are less HOT 2
- Bug: no preview of items in layout editor HOT 14
- The listener documentation should be included in the README HOT 1
- Ability To Adjust Handle Size HOT 2
- Bubble not showing on scroll HOT 1
- JCenter is shutting down on May 1st, 2021 HOT 8
- Issue with collapsing toolbar HOT 1
- Ability to disable navigation by touch HOT 1
- FastScrollRecyclerView Error HOT 2
- r
- Convert FastScroll to Kotlin HOT 1
- Add Compose Example HOT 1
- RecyclerView Scrolling doesn't put bubble/handle at bottom HOT 1
- Accidental scroll jumps because of bubble width touch area on whole height HOT 2
- setSectionIndexer visibility HOT 1
- collapsible toolbar not collapsing HOT 1
- Thickness of the thumb and customizable drawable thumb HOT 1
- RecyclerView shows handle when Filterable returns an empty list
- Click on scroll track should be disabled when when showTrack="false"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastscroll.