Search in sources :

Example 31 with AnimationAdapter

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

the class ListViewAnimationsFragment method setBottomRightAdapter.

/**
     * Bottom-right animation
     */
private void setBottomRightAdapter() {
    AnimationAdapter animCardArrayAdapter = new SwingBottomInAnimationAdapter(new SwingRightInAnimationAdapter(mCardArrayAdapter));
    animCardArrayAdapter.setAbsListView(mListView);
    if (mListView != null) {
        mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
    }
}
Also used : SwingRightInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter) SwingBottomInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter) 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 32 with AnimationAdapter

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

the class NativeDragDropListFragment method setLeftAdapter.

/**
     * Left animation
     */
private void setLeftAdapter() {
    AnimationAdapter animCardArrayAdapter = new SwingLeftInAnimationAdapter(mCardArrayAdapter);
    animCardArrayAdapter.setAbsListView(mListView);
    if (mListView != null) {
        mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
    }
}
Also used : SwingLeftInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter) 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

AnimationAdapter (com.nhaarman.listviewanimations.appearance.AnimationAdapter)32 AlphaInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter)32 ScaleInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter)30 SwingBottomInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)30 SwingLeftInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter)30 SwingRightInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter)30 Card (it.gmariotti.cardslib.library.internal.Card)2 CardArrayAdapter (it.gmariotti.cardslib.library.internal.CardArrayAdapter)2 CardHeader (it.gmariotti.cardslib.library.internal.CardHeader)2 ViewToClickToExpand (it.gmariotti.cardslib.library.internal.ViewToClickToExpand)2 CardListView (it.gmariotti.cardslib.library.view.CardListView)2 ArrayList (java.util.ArrayList)2