Skip to content
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 set the center point of animations? #51

Closed
TommyTC opened this issue Apr 23, 2015 · 8 comments
Closed

How to set the center point of animations? #51

TommyTC opened this issue Apr 23, 2015 · 8 comments

Comments

@TommyTC
Copy link

TommyTC commented Apr 23, 2015

Hi.
This is a very nice library to use animation in android.
But why it is different effect in my project ?such as DropOutAnimation.
I import it by gradle.
Can you help me to use if you have time ?
Thanks

@TommyTC
Copy link
Author

TommyTC commented Apr 23, 2015

I think the problem is not in the layout,Becuse I try use your layout.

@kutukoff
Copy link

I have this problem to. I'm use CircleImageView in LinearLayout, animation start from left top.

        <de.hdodenhof.circleimageview.CircleImageView
            android:layout_width="120dp"
            android:layout_height="120dp"
            android:id="@+id/photo1"
            android:layout_marginRight="10dp"
            android:layout_gravity="center"
            android:visibility="gone" />

        <de.hdodenhof.circleimageview.CircleImageView
            android:layout_width="120dp"
            android:layout_height="120dp"
            android:id="@+id/photo2"
            android:layout_marginLeft="10dp"
            android:layout_gravity="center"
            android:visibility="gone" />
    </LinearLayout>

@kutukoff
Copy link

I'm find problem! Problem with style android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"

@seshuvinay
Copy link

any update on how to fixthis? I have this problem too.

@bouchtaoui-dev
Copy link

Hello guys, BounceIn animation starts from top-left position of the view, but I want it from the center position of the view. How can I achieve that?

I like this library very much. I really appreciate the author of this project to share it with the community. If I only know how to fix this problem, I'd be very very happy.
Thank you.

@johntiror
Copy link

johntiror commented Apr 26, 2016

Hi, I found the same issue: BounceIn animation starts from top-left position of the view, but I want it from the center position of the view. How can I achieve that?
Thanks very much

@bouchtaoui-dev
Copy link

@johntiror I think this happens when you perform Bounce animation too soon. I haven't fixed it yet, but I think you need to perform the bounce animation when your view is finished rendering. There's a callback when for when the view is layed out, see this link: http://stackoverflow.com/a/7735122/1012775
I think that should fix your problem.

@johntiror
Copy link

Thanks, that's correct. it solved. Thanks!

@TommyTC TommyTC closed this as completed Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants