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

Use Interpolator in a xml file #5

Closed
Daksh14 opened this issue Sep 20, 2018 · 1 comment
Closed

Use Interpolator in a xml file #5

Daksh14 opened this issue Sep 20, 2018 · 1 comment

Comments

@Daksh14
Copy link

Daksh14 commented Sep 20, 2018

This is supposed to be my animation in the xml

<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
   android:interpolator="@android:anim/accelerate_interpolator"
   android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="100" />

Now i can't do it programmatically as i'm animating this
popupWindow.setAnimationStyle(R.style.popup_window_animation_phone);
And the file has to be in the style resource.
So can you help me setting the Interpolator for this animation in xml?

@MasayukiSuda
Copy link
Owner

use binding adapter

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

2 participants