Comments (6)
Hi @gmeral, that question can be answered by @akaN44, he improved that part of the project.
Like I said in others threads before, I will be working hard in this project asap, after finishing some functional requirements of an app.
from custombottomsheetbehavior.
Okay thank you, let's hope he is going to be passing by sometime soon then :)
from custombottomsheetbehavior.
@gmeral Take a look at this commit b66ef17
from custombottomsheetbehavior.
Oh i see, it's very clear now, then you added an if to only have this behaviour in STATE_ANCHOR_POINT.
Thanks a lot, i integrated these changes and it works like a charm.
from custombottomsheetbehavior.
I am also curious, as the ViewPager disable the horizontal scroll for the Map behind, which looks like a dirty hack.
As soon as we replace the ViewPager with an ImageView, the map can now move...
Commit referenced by @akaN44 is now overwritten ...
from custombottomsheetbehavior.
In BottomSheetBehaviorGoogleMapsLike.java :
In the onInterceptTouchEvent method you have to replace this piece of code :
View scroll = mNestedScrollingChildRef.get();
if (scroll != null && parent.isPointInChildBounds(scroll, initialX, mInitialY)) {
mActivePointerId = event.getPointerId(event.getActionIndex());
mTouchingScrollingChild = true;
}
by
if(mState == STATE_ANCHOR_POINT){
mActivePointerId = event.getPointerId(event.getActionIndex());
mTouchingScrollingChild = true;
}else {
View scroll = mNestedScrollingChildRef.get();
if (scroll != null && parent.isPointInChildBounds(scroll, initialX, mInitialY)) {
mActivePointerId = event.getPointerId(event.getActionIndex());
mTouchingScrollingChild = true;
}
}
from custombottomsheetbehavior.
Related Issues (20)
- NullPointerException at 288 line in BottomSheetBehaviorGoogleMapsLike HOT 20
- How to prevent STATE_COLLAPSED and STATE_HIDDEN? HOT 3
- main status bar color HOT 2
- crash with compile sdk version HOT 6
- The view is not associated with BottomSheetBehaviorGoogleMapsLike
- FATAL error on Viewdragger helper HOT 1
- How do I change MargedAppBarLayout's TitleTextColor?
- to vit001: How do I use your CustomBottomSheetBehavior custom lib (with your own viewpager)? HOT 4
- Parallax effect and Merged AppBar problems HOT 7
- Wrong behavior when the keyboard is shown
- What to do if PeekHeight > ToolbarHeight + StatusBarHeight
- crash with sdk 28 HOT 2
- Backdrop View is not showing properly in some cases, it doesn't animate to Anchor point.
- Header card should completely hide behind Toolbar
- Use in Kotlin has an error
- how to add custom view Toolbar when set STATE_EXPANDED
- Anchor Point state is not proper when it is set to 156dp
- Disable dragging on BackdropBottomSheetBehavior
- Clashing in defaultState attribute naming with ConstraintLayout 2.0 HOT 2
- Could not find com.mahc.custombottomsheetbehavior:googlemaps-like:0.9.4. in Gradle 7.2 HOT 1
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 custombottomsheetbehavior.