It looks like you are building a chat app, have you looked through the forums for examples of this?
this is how to make a list viewer yourself