Comments (3)
Try this:
// ViewPagerBottomSheetBehavior.kt
// must be in the same package as BottomSheetBehavior
package com.google.android.material.bottomsheet
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import java.lang.ref.WeakReference
class ViewPagerBottomSheetBehavior<V : View>(context: Context, attrs: AttributeSet?) : BottomSheetBehavior<V>(context, attrs) {
override fun onStartNestedScroll(coordinatorLayout: CoordinatorLayout, child: V, directTargetChild: View, target: View, axes: Int, type: Int): Boolean {
nestedScrollingChildRef = WeakReference(target)
return super.onStartNestedScroll(coordinatorLayout, child, directTargetChild, target, axes, type)
}
}
https://gist.github.com/nolanamy/9fc31c3056e561fa22d6e3ef71630870
from viewpagerbottomsheet.
Hi, did you find a solution?
from viewpagerbottomsheet.
Check forked repo https://github.com/svrlopatrik/ViewPagerBottomSheet
from viewpagerbottomsheet.
Related Issues (20)
- Add anchor to persistent bottomsheet HOT 1
- Null Pointer Exception HOT 4
- How to display bottom sheet below main toolbar? HOT 1
- Get BottomSheetBehavior callback HOT 3
- crash app after update support library:design to 27.0.2 HOT 8
- Bad Request 400 HOT 1
- It is possible use wrap_content height viewpager? HOT 1
- Issue in ViewPagerUtils HOT 2
- NullPointerException HOT 12
- NullPointerException HOT 2
- ANR, While scrolling list with a lot of items
- Failed to resolve: biz.laenger.android:vpbs:0.0.5 HOT 4
- Set Height HOT 1
- migrate to androidx
- java.lang.NullPointerException: at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.onInterceptTouchEvent HOT 3
- java.lang.NullPointerException HOT 1
- Used the library and resolved the issue of scrolling.But how to setState of bottomSheet as Expanded on some condition. HOT 2
- Cant scroll up the web view inside the view pager HOT 1
- Is this still support viewpager2 ? HOT 2
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 viewpagerbottomsheet.