Search in sources :

Example 1 with ScaleInAnimationAdapter

use of com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter in project ListViewAnimations by nhaarman.

the class AppearanceExamplesActivity method setScaleAdapter.

private void setScaleAdapter() {
    if (!(mAnimAdapter instanceof ScaleInAnimationAdapter)) {
        mAnimAdapter = new ScaleInAnimationAdapter(mAdapter);
        mAnimAdapter.setAbsListView(getListView());
        getListView().setAdapter(mAnimAdapter);
    }
}
Also used : ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter)

Example 2 with ScaleInAnimationAdapter

use of com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter in project cardslib by gabrielemariotti.

the class AnimateStaggeredGridFragment method setScaleAdapter.

/**
     * Scale animation
     */
private void setScaleAdapter() {
    AnimationAdapter animCardArrayAdapter = new ScaleInAnimationAdapter(mCardArrayAdapter);
    setCommonAnimation(animCardArrayAdapter);
    animCardArrayAdapter.setAbsListView(staggeredView);
    staggeredView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
Also used : ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) SwingRightInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter) SwingLeftInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter) ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) AlphaInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter) AnimationAdapter(com.nhaarman.listviewanimations.appearance.AnimationAdapter) SwingBottomInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)

Example 3 with ScaleInAnimationAdapter

use of com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter in project cardslib by gabrielemariotti.

the class ListViewGridAnimationsFragment method setScaleAdapter.

/**
     * Scale animation
     */
private void setScaleAdapter() {
    AnimationAdapter animCardArrayAdapter = new ScaleInAnimationAdapter(mCardArrayAdapter);
    animCardArrayAdapter.setAbsListView(mListView);
    mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
Also used : ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) SwingRightInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter) SwingLeftInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter) ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) AlphaInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter) AnimationAdapter(com.nhaarman.listviewanimations.appearance.AnimationAdapter) SwingBottomInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)

Example 4 with ScaleInAnimationAdapter

use of com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter in project cardslib by gabrielemariotti.

the class NativeDragDropListFragment method setScaleAdapter.

/**
     * Scale animation
     */
private void setScaleAdapter() {
    AnimationAdapter animCardArrayAdapter = new ScaleInAnimationAdapter(mCardArrayAdapter);
    animCardArrayAdapter.setAbsListView(mListView);
    if (mListView != null) {
        mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
    }
}
Also used : ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) SwingLeftInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter) ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) SwingRightInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter) AlphaInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter) AnimationAdapter(com.nhaarman.listviewanimations.appearance.AnimationAdapter) SwingBottomInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)

Example 5 with ScaleInAnimationAdapter

use of com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter in project cardslib by gabrielemariotti.

the class ListViewAnimationsFragment method setScaleAdapter.

/**
     * Scale animation
     */
private void setScaleAdapter() {
    AnimationAdapter animCardArrayAdapter = new ScaleInAnimationAdapter(mCardArrayAdapter);
    animCardArrayAdapter.setAbsListView(mListView);
    if (mListView != null) {
        mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
    }
}
Also used : ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) SwingLeftInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter) ScaleInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter) SwingRightInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter) AlphaInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter) AnimationAdapter(com.nhaarman.listviewanimations.appearance.AnimationAdapter) SwingBottomInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)

Aggregations

ScaleInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter)6 AnimationAdapter (com.nhaarman.listviewanimations.appearance.AnimationAdapter)5 AlphaInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter)5 SwingBottomInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)5 SwingLeftInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter)5 SwingRightInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter)5