title: How to add new card dynamically to cardslib listview?
body: <p>I have this cardlibs listview in a fragment.</p>
  
  <p>I have some dynamic data coming in through the main activity.</p>
  
  <p>When I first call the fragment with the listview, to populate a card,
  everything is cool. It' shows. I have the function set to check if the fragment
  is activate and if it is just call a method inside the fragment which is supposed
  to add another card to the list.</p>
  
  <p>Host Activity</p>
  
  <pre><code>    public void pushToFeedFromActivity(JSONObject msg){
      FragmentManager fragmentManager = getFragmentManager();
      if (!myFeedActive) {
          myFeedActive = true;
          Bundle argsScene = new Bundle();
          FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
          fragmentTransaction.replace(R.id.feedInnerParent, FragFeed.newInstance(msg), "myfeed");
          fragmentTransaction.commit();
  
      }else {
          FragFeed fragFeed = (FragFeed) getFragmentManager().findFragmentByTag("myfeed");
          fragFeed.pushToFeed(msg);
      }
  };
  
     @OnClick(R.id.PushToFeedButton)
      public void presstoPushToFeed(View v) {
      pushToFeedFromActivity(json)
      ......
  </code></pre>
  
  <p>In onActivity, I'm getting the arg from the bundle/parsing the json and passing it
  to the method that adds cards to the list, Like I said these instructions work
  the first time the fragment is added but not the subsequent times, when just
  the method is called directly from the activity.</p>
  
  <p>Fragment</p>
  
  <pre><code>    public void onActivityCreated(Bundle savedInstanceState) {
      ....
      pushToFeed(jsonFromString);
      .....
      }
  
      public void pushToFeed(JSONObject json) {
      Log.v(TAG + "pushtofeed", json.toString());
      if (json != null) {
          try {
              body = jsonFromString.get("stdin").toString();
              lo = jsonFromString.get("lo").toString();
              channel = jsonFromString.get("channel").toString();
          } catch (JSONException e) {
              e.printStackTrace();
          }
      }
  
      {
      ArrayList&lt;Card&gt; cards = new ArrayList&lt;Card&gt;();
      {
          SceneCard card = new SceneCard(getActivity());
          //CardHeader header = new CardHeader(getActivity());
          card.setClickable(true);
          //card.addCardHeader(header);
          card.setSceneCardloqoo(loqoo);
          card.setSceneCardmsgbody(body);
          card.setSceneCardchannel(channel);
          card.getSceneCardtime();
          cards.add(card);
  
      }
  
  
      CardArrayAdapter mCardArrayAdapter = new CardArrayAdapter(getActivity(), cards);
      CardListView listView = (CardListView) getActivity().findViewById(R.id.fragFeedList);
      if (listView != null) {
          listView.setVerticalScrollBarEnabled(false);
          listView.setAdapter(mCardArrayAdapter);
          Log.v(TAG + "pushtofeed - listview", json.toString());
  
      }
      mCardArrayAdapter.notifyDataSetChanged();
  
  }
  </code></pre>
  
  <p>I've added Log statements in the fragment method, so I know for sure the calls
  are going through, there's just something in the list implementation, that's
  mixed up. What gives?</p>