I am quit new to Android, but as far as I know you could make a custom view. Take a linearLayout and add two textfields. Something like this. LinearLayout where orientation is horizontal. |----------------------| | TextView | TextView | |______________________|
Create a custom adapater that extends BaseAdapter and override the getView method where this method then returns your custom view and populates the fields. Set this adapter to be your ListView adapter in the activity. Have a look here: http://developerlife.com/tutorials/?p=327 Jiri fhucho wrote: > Hi, > I want to include a chat feature into my application. But I don't know > what widget should I use for the chat - now I use TextView but I have > two problems: > > 1) In the TextView there will be lines like "John: Hi, how're you > doing?". I want the text "John" to have blue color, how can I do that? > 2) When a new message arrives I want the chat to scroll automatically. > > What do you think is the simplest way to implement chat according to > my requirenments? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

