Skip to content

LayoutAnimationController results in slow animations #2

Description

@stephenohair

Hi,

Great work btw. I'm trying to animate the child items as they're added in this DraggableGridViewPager and while it works it's quite slow when it runs the animation in contrast to applying the same animation to a View.GridView. I know that GridView and your DraggableGridViewPager both extend ViewGroup so I'm puzzled at which point the slow down is occurring.

Here is how I apply the controller:

    DraggableGridViewPager pager = (DraggableGridViewPager) findViewById(R.id.app_pager);
    Animation zoomIn = AnimationUtils.loadAnimation(this, R.anim.zoom_in);
    LayoutAnimationController controller = new LayoutAnimationController(zoomIn);
    pager.setLayoutAnimation(controller);

Would you know what could be causing this please?

Regards,

Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions