Java Code Examples for com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.SwipeDismissAdapter

The following examples show how to use com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.SwipeDismissAdapter. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
protected void onCreate(final Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setTitle("Google Card");
	setContentView(R.layout.activity_googlecards);

	ListView listView = (ListView) findViewById(R.id.activity_googlecards_listview);

	mGoogleCardsAdapter = new GoogleCardsAdapter(this);
	SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(new SwipeDismissAdapter(mGoogleCardsAdapter, this));
	swingBottomInAnimationAdapter.setInitialDelayMillis(300);
	swingBottomInAnimationAdapter.setAbsListView(listView);

	listView.setAdapter(swingBottomInAnimationAdapter);

	mGoogleCardsAdapter.addAll(getItems());
}
 
Example 2
private void setSwipeDismissAdapter() {
    SwipeDismissAdapter adapter = new SwipeDismissAdapter(mAdapter, this);
    adapter.setAbsListView(getListView());
    getListView().setAdapter(adapter);
}
 
Example 3
private void setSwipeDismissAdapter() {
    SwipeDismissAdapter adapter = new SwipeDismissAdapter(mAdapter, this);
    adapter.setAbsListView(getListView());
    getListView().setAdapter(adapter);
}