Cannot apply correct animation
See original GitHub issuehi, I am trying to set up an animation on an ImageView by using Techniques.RotateIn
YoYo.with(Techniques.RotateIn) .duration(1000) .interpolate(new AccelerateDecelerateInterpolator()) .playOn(mLoginImage);
The result I expect to have is a self-rotation of the ImageView
unfortunately the result now is like using Techniques.RotateInDownLeft
btw, I am using ButterKnife to do the view injection is this related to the issue?
Here is my XML layout
<LinearLayout android:layout_centerInParent="true"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<ImageView android:id="@+id/login_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/login"/>
<LinearLayout android:id="@+id/login_panel"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:padding="16dp">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="@drawable/bg_bottom_border"
android:padding="8dp"
android:hint="username"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="@drawable/bg_bottom_border"
android:padding="8dp"
android:hint="password"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/selector_button"
android:textColor="@android:color/white"
android:text="Login"/>
</LinearLayout>
</LinearLayout>
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
CSS Animations Not Working? Try These Fixes - HubSpot Blog
Learn how to fix common CSS animation error and get your animations looking how you want them.
Read more >Cannot See or Apply Animation Presets
All I'm trying to do is apply a simple text animation preset. I've tried selecting the layer, browsing presets in bridge and double...
Read more >Apply multiple animation effects to one object - Microsoft Support
On the Animations tab, click Animation Pane. Open the Animation Pane. Click Add Animation, and pick an animation effect. Add an animation effect...
Read more >Animation rigging error: The TransformStreamHandle cannot ...
My error is - System.InvalidOperationException: The TransformStreamHandle is invalid. Please use proper function to create the handle.
Read more >Cannot do CSS animation in Angular - Stack Overflow
As long as your CSS rule selects an element correctly and the applied animations are correct then it will work.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Really late but this is surely why your animation not behave correctly : http://stackoverflow.com/questions/7289827/how-to-start-animation-immediately-after-oncreate
I tried to use method with my animations from activity-life-circle methods and when press the button. The result was two different behavior for same code. Correct was when i press the button.