question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot apply correct animation

See original GitHub issue

hi, 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:open
  • Created 9 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MrLepagecommented, May 2, 2016

Really late but this is surely why your animation not behave correctly : http://stackoverflow.com/questions/7289827/how-to-start-animation-immediately-after-oncreate

1reaction
messenger63commented, Jun 12, 2015

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found