Search in sources :

Example 6 with SwingLeftInAnimationAdapter

use of com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter in project Euclid by Yalantis.

the class EuclidActivity method initList.

private void initList() {
    mListViewAnimationAdapter = new SwingLeftInAnimationAdapter(getAdapter());
    mListViewAnimationAdapter.setAbsListView(mListView);
    mListViewAnimator = mListViewAnimationAdapter.getViewAnimator();
    if (mListViewAnimator != null) {
        mListViewAnimator.setAnimationDurationMillis(getAnimationDurationCloseProfileDetails());
        mListViewAnimator.disableAnimations();
    }
    mListView.setAdapter(mListViewAnimationAdapter);
    mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            mState = EuclidState.Opening;
            showProfileDetails((Map<String, Object>) parent.getItemAtPosition(position), view);
        }
    });
}
Also used : SwingLeftInAnimationAdapter(com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter) AdapterView(android.widget.AdapterView) ImageView(android.widget.ImageView) View(android.view.View) AdapterView(android.widget.AdapterView) TextView(android.widget.TextView) ListView(android.widget.ListView) Map(java.util.Map)

Example 7 with SwingLeftInAnimationAdapter

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

the class AppearanceExamplesActivity method setLeftAdapter.

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

Aggregations

SwingLeftInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingLeftInAnimationAdapter)7 AnimationAdapter (com.nhaarman.listviewanimations.appearance.AnimationAdapter)5 AlphaInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter)5 ScaleInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.ScaleInAnimationAdapter)5 SwingBottomInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingBottomInAnimationAdapter)5 SwingRightInAnimationAdapter (com.nhaarman.listviewanimations.appearance.simple.SwingRightInAnimationAdapter)5 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 ImageView (android.widget.ImageView)1 ListView (android.widget.ListView)1 TextView (android.widget.TextView)1 Map (java.util.Map)1