com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.SwipeDismissAdapter Java Examples
The following examples show how to use
com.nhaarman.listviewanimations.itemmanipulation.swipedismiss.SwipeDismissAdapter.
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
Source File: GoogleCardsActivity.java From android-open-project-demo with Apache License 2.0 | 6 votes |
@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
Source File: SwipeToDismissActivity.java From android-open-project-demo with Apache License 2.0 | 4 votes |
private void setSwipeDismissAdapter() { SwipeDismissAdapter adapter = new SwipeDismissAdapter(mAdapter, this); adapter.setAbsListView(getListView()); getListView().setAdapter(adapter); }
Example #3
Source File: SwipeToDismissActivity.java From android-open-project-demo with Apache License 2.0 | 4 votes |
private void setSwipeDismissAdapter() { SwipeDismissAdapter adapter = new SwipeDismissAdapter(mAdapter, this); adapter.setAbsListView(getListView()); getListView().setAdapter(adapter); }