Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Backport of android.transition package #65

Open
matt-oakes opened this issue Jan 4, 2014 · 2 comments
Open

Backport of android.transition package #65

matt-oakes opened this issue Jan 4, 2014 · 2 comments

Comments

@matt-oakes
Copy link

I'm currently playing around with a backport of the android.transition package. To me, this seems like a perfect fit for inclusion into NineOldAndroids to give a more complete backward compatible animation library.

If it is indeed possible to backport the transition framework all the way back to Android 1.0 (and I've not looked into it enough to know if I can) then would you consider including these into NOA itself? Another option could be to create a new library which has a hard dependency on NOA to provide pre-honeycomb support.

Let me know what you think.

@arichiardi
Copy link

A question, I tried to load something like:

<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:shareInterpolator="false" >
    <translate
        android:duration="@android:integer/config_mediumAnimTime"
        android:fromXDelta="50%p"
        android:toXDelta="0" />
    <alpha
        android:duration="@android:integer/config_mediumAnimTime"
        android:fromAlpha="0.0"
        android:toAlpha="1.0" />
</set>

But I saw that the code launches a RuntimeException on the translate element. The case is not handled by AnimatorInflator. Would your port solve it? I am definitely interested in it and I will be able to contribute.

Thanks!

@bradgrimm
Copy link

I attempted to port the transition package. I had some success, but ran into a couple of issues due to two missing features: 1) ViewGroup.suppressLayout and 2) View.setTransitionAlpha. It doesn't use nine-old-androids, but could probably be modified fairly easily to use it for the animations instead.

See the repo here:
https://github.com/snard6/Android-Scene-Transition

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants