-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make mPositionPerc public or add event to track position percentage #122
Comments
Oh wait I'm sorry. apparently thank you :) |
.... Apparently onSlideCompleteAnimationStarted only called when I release the slider .. so there's no actual event to track mPositionPerc in real time so I will reopen this issue. sorryy |
Hi @fugogugo, thanks for sending this feature request. What you're asking is something like a: interface OnSlideProgressListener {
fun onSlideUpdated(view: SlideToActView, progress: Float)
} as exposing just I'm leaning towards not doing this change for mostly two reasons:
I will leave the issue open to collect feedbacks from the community and hear what's the opinion of other users of the library. |
I would love a listener like this. Helps in making animations in my activity more responsive and lively! |
Can you please describe what you're trying to achieve? |
I wish to dynamically fade out a fab that i have on my screen as the user slides the slider. It adds quite a good touch of responsiveness to it. |
However, this is not an aesthetic i would want at the cost of performance |
☝️ Exactly. My suggestion here would be to start a fade animation for your FAB once the |
Is there anyway to implement a drag listener to this that Will give me How
much is Being dragged ??
…On Sun, 13 Sep 2020, 3:15 pm Nicola Corti, ***@***.***> wrote:
However, this is not an aesthetic i would want at the cost of performance
☝️ Exactly. My suggestion here would be to start a fade animation for
your FAB once the onSlideCompleteAnimationStarted callback gets fired.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#122 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANM7O5XHN2PJFM5LADX6I2TSFSER5ANCNFSM4N57SWJA>
.
|
Not at the moment. That's what the issue is about as of today 👍 |
I see there's mPositionPerc that is used to rotate icon angle according to the position. But unfortunately it isn't accessible.
Actually this mPositionPerc is more useful than just to rotate the icon. I think it would be good if there's event to track this mPositionPerc . In my case I need this value to fade out my background alpha according to the slide position
I want to do it myself but I don't understand how to build the library
The text was updated successfully, but these errors were encountered: