@Override
  protected void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.fragment_today);

    ListView listView = (ListView) findViewById(R.id.today_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());
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_googlecards);

    Toast.makeText(
            getBaseContext(), "Names are displayed in alphabetical order", Toast.LENGTH_SHORT)
        .show();

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

    mGoogleCardsAdapter = new GoogleCardsAdapter(this);
    SwingBottomInAnimationAdapter swingBottomInAnimationAdapter =
        new SwingBottomInAnimationAdapter(mGoogleCardsAdapter);
    swingBottomInAnimationAdapter.setAbsListView(listView);

    listView.setAdapter(swingBottomInAnimationAdapter);

    mGoogleCardsAdapter.addAll(getItems());
  }
 @Override
 public void onDismiss(final AbsListView listView, final int[] reverseSortedPositions) {
   for (int position : reverseSortedPositions) {
     mGoogleCardsAdapter.remove(position);
   }
 }