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);
}
});
}
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);
}
}
Aggregations