read new message top on listview
<p>I'm trying crate a chat app.
Users can write and read but when a user writes message it's going to the bottom of the list.. I want to reverse. I want to  new message go top on list.</p>

<p>I try several ways 2 days.</p>

<pre><code>    public class MainActivity extends AppCompatActivity {
    private Firebase mFirebaseRef;
    FirebaseListAdapter&lt;ChatMessage&gt; mListAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Firebase.setAndroidContext(this);
        setContentView(R.layout.activity_main);

        mFirebaseRef = new Firebase("https://hkhkhh.firebaseio.com");

        final EditText textEdit = (EditText) this.findViewById(R.id.text_edit);
        Button sendButton = (Button) this.findViewById(R.id.send_button);



        sendButton.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                String text = textEdit.getText().toString();
                Map&lt;String,Object&gt; values = new HashMap&lt;&gt;();
                values.put("name", "Android User");
                values.put("text", text);
                mFirebaseRef.push().setValue(values);
                textEdit.setText("");
            }
        });



        final ListView listView = (ListView) this.findViewById(android.R.id.list);

        mListAdapter = new FirebaseListAdapter&lt;ChatMessage&gt;(this, ChatMessage.class,

                android.R.layout.two_line_list_item, mFirebaseRef) {

            @Override
            protected void populateView(View v, ChatMessage model, int position) {
                ((TextView)v.findViewById(android.R.id.text1)).setText(model.getName());
                ((TextView)v.findViewById(android.R.id.text2)).setText(model.getText());

            }
        };

        listView.setAdapter(mListAdapter);


    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
        mListAdapter.cleanup();
    }
}
</code></pre>

<p>and
chatmessage java</p>

<pre><code>package com.ankayapim.ozan.kagit23;

public class ChatMessage {
    private String name;
    private String text;



    public ChatMessage() {
        // necessary for Firebase's deserializer
    }
    public ChatMessage(String name, String text) {
        this.name = name;
        this.text = text;
    }



    public String getName() {
        return name;
    }

    public String getText() {
        return text;
    }
}
</code></pre>