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

Problem with Andorid API 7.0 #27

Open
AhmadHegazy opened this issue Oct 23, 2016 · 2 comments
Open

Problem with Andorid API 7.0 #27

AhmadHegazy opened this issue Oct 23, 2016 · 2 comments

Comments

@AhmadHegazy
Copy link

I have a problem while animate simple panel from right to left it animate correctly but just one time only, after try to do it again and again nothing happen. this is just with android API 7.0. before this every thing work perfectly.

@wisien92
Copy link

wisien92 commented Jan 3, 2017

There is workaround. You need to store initial location. You will need 2 dimentional array:

private int[] location = new int[2];

Before animation starts get location:

view.getLocationOnScreen(location);

Then add new animation listener and restore position in onAnimationEnd:

new AnimationListener() {
	@Override
	public void onAnimationEnd(Animation animation) {
		view.setX(location[0]);
		view.setY(location[1]);
	}
}

Ugly but works - and I hope but doubt that lib will be updated.

@Hemant0601
Copy link

I faced the same, when is a standard fix expected?

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

3 participants