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

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

    mGoogleCardsAdapter = new GoogleCardsSocialAdapter(this, DummyContent.getDummyModelList());
    SwingBottomInAnimationAdapter swingBottomInAnimationAdapter =
        new SwingBottomInAnimationAdapter(new SwipeDismissAdapter(mGoogleCardsAdapter, this));
    swingBottomInAnimationAdapter.setAbsListView(listView);

    assert swingBottomInAnimationAdapter.getViewAnimator() != null;
    swingBottomInAnimationAdapter.getViewAnimator().setInitialDelayMillis(INITIAL_DELAY_MILLIS);

    listView.setClipToPadding(false);
    listView.setDivider(null);
    Resources r = getResources();
    int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8, r.getDisplayMetrics());
    listView.setDividerHeight(px);
    listView.setFadingEdgeLength(0);
    listView.setFitsSystemWindows(true);
    px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 12, r.getDisplayMetrics());
    listView.setPadding(px, px, px, px);
    listView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY);
    listView.setAdapter(swingBottomInAnimationAdapter);

    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setTitle("Google cards social");
  }
  private void initView(InvestmentActivity context) {
    this.context = context;

    LayoutInflater inflater =
        (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    inflater.inflate(R.layout.layout_investment_rush, this);

    initSwipeRefresh();

    rushListView = (ListView) this.findViewById(R.id.rushListView);

    qtLayout = new InvestmentQTLayout(this.context);
    rushListView.addHeaderView(qtLayout);

    rushAdapter = new VoteOfRushAdapter(this.context);

    swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(rushAdapter);
    swingBottomInAnimationAdapter.setAbsListView(rushListView);
    swingBottomInAnimationAdapter
        .getViewAnimator()
        .setInitialDelayMillis(Constants.INITIAL_DELAY_MILLIS);
    rushListView.setAdapter(swingBottomInAnimationAdapter);
  }