title: Firebase automatically scroll listview when data is added
body: <p>I am working on a chat application and i am using firebase listview ui which works great, but my problem is when data is inserted to the database, the listview does not scroll down automatically and when reopening the listview activity, it starts from the top which i will have to scroll down for minutes to see the new data inserted, can you help me implement this </p>
  
  <pre><code>FirebaseListAdapter&lt;Chats&gt; chatsFirebaseListAdapter = new FirebaseListAdapter&lt;Chats&gt;(
              this,
              Chats.class,
              R.layout.messaging_layout,
              readMessages
      ) {
          @Override
          protected void populateView(View v, Chats model, int position) {
              TextView username = (TextView) v.findViewById(R.id.textViewUsername);
              username.setText(model.getUsername());
              TextView message = (TextView) v.findViewById(R.id.textViewMessage);
              message.setText(model.getMessage());
              TextView date = (TextView) v.findViewById(R.id.textViewDate);
              date.setText(model.getDate());
          }
      };
      listView.smoothScrollToPosition(chatsFirebaseListAdapter.getCount() -1);
      listView.setAdapter(chatsFirebaseListAdapter);
  </code></pre>