Hi there,

I have written the following class

public class Message {

        private String messageText;
        private String messageId;
}

This class has been used to create an ArrayList of objects of the
class Message

        public ArrayList<Message> outStandingMessages = new
ArrayList<Message>();

What I'm trying to do is display all attributes "messageText" of all
the "outStandingMessages" ArrayList in a ListView.

This is the code I currently have:


        ArrayList<Message> messagesPending =
appState.outStandingMessages;

        messagesListView.setAdapter(new
ArrayAdapter<Message>(this,R.layout.my_list_item, messagesPending));

This doesn't show the "messageText" attributes obviously as the
attribute is not selected but I've tried several ways but none work.

How can I select that attribute but not the whole object as it is now?

Thanks


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to