-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
How to do translation animation? #194
Comments
Try before you run the animation to use the cardView.layoutIfNeeded()
cardView.animate(MaterialAnimation.translateY(200)) |
I haven't heard back from you. If you need any further help, please reopen the issue, or create a new one. Thank you! |
hi @DanielDahan it works! thank you! |
hi sorry the animation works but the touch location and button location is not at the same position |
Fixed the issue :) Now making tests for the animations to confirm everything. Today's release will have this update. |
awesome!! |
Please checkout version 1.35.3 :) |
Hi, I've created a UIView programmatically, set 4 NSLayoutConstraints and then perform a Motion.translateY. I've tried calling layoutIfNeeded before animate but doesn't work. With UIView.animate(..) is working fine. |
I will look into this :) Thank you. |
@Matungos |
I made this sample project https://drive.google.com/open?id=0B9S3OPPnUMK0dFpOa1pvVDB2TjQ The hitTest function is overridden in the custom view to test it out. Thanks. |
@Matungos Thank you, I will take a look. |
Looking now :) |
I confirmed an issue, I will be working on this today. Thank you :) |
A proposed fix is now in development. I will need to test this more. If you can too that would be great :) @Matungos |
It seems to be working with those changes. But I've found another issue but I don't know if it is related to the newer changes. |
I don't see a clear button. Can you send me a sample? |
The button spans to more than the x, you can see this by setting a background. I think this is what you are seeing. |
I am going to close this issue and prepare it for release :) Thank you! |
I'll try to describe better. |
Ah I understand. I Don't see how that could really be a Material thing as Material uses the standard UIButton and target handling. There isn't any special hit target setup. If you would like to send a sample over, you are welcome to. In order to help you, I need a reproducible sample. Also, if you are using a SearchBarController, it is not possible to have the Bar actually under the other. The way it is designed, is that it cuts the portion not seen off, so it is not actually under. They are beside each other. In order to have it under, you would need to set the |
The fix is now available in Material 2.4.1 :) Thank you for sharing the issue :) |
Hi, I want to animate cardview in the example project
The animation code is at the end. The animation runs, but the click position doesn't reflect the new position of the view.
The text was updated successfully, but these errors were encountered: