-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Can I disable the animation added due to issue #89? #145
Comments
You can't disable the animation. This library really focusses on material guidelines and material motion. The button, a sheet if you spoke as in the material docs, can't appear immediately but instead has to be animated in. Before this change the appearance of the button caused a glitch whenever you slide from and to a button slide. |
Thanks for the response. If you can give me some guidance on how to setup the layout that would be helpful. I am in fact using a custom layout file for each slide, both SimpleSlide's and FragmentSlide's. I can provide the resource file later in the day as I don't have my personal PC with me now. |
Yeah that'd come in handy. |
I have two layouts, one for portrait and the other for landscape mode. I used the ID's for the views that you used in the library. Portrait:
And the landscape orientation:
|
I don't see any reason why the text would jump in your portrait layout. All |
Ok, I fixed the problem. I was using somewhat large images for the ImageView and as you can see, I had a layout_weight attribute for the ImageView and the Space widget at the end. This caused the image to take up different amount of space depending on whether more space was available when the CTA button gets hidden. That is why there was some change in the position of text from one slide to the next and that caused the motion animation for the text. Now, I made the images smaller and removed the layout_weight attributes. Everything is a fixed size given by wrap_content and now there is no issue. My only concern is some text may get cut off in really small screen scenarios but that is something else. I wish Android could allow us to specify percentage values in layouts, but I digress. |
I noticed you added an animation in release 1.5.8, in response to issue #89, to make the contents of the slide gracefully expand when the next slide does not have a button. This is adding some movement to the text/images in my slides whereas in Release 1.5.5, I had no jumping problem as mentioned in #89. Perhaps because I am using a custom layout for the SimpleSlide. Can I disable the animations so that text/images don't appear to be changing in size when I change to a slide without a button?
The text was updated successfully, but these errors were encountered: