Hi Yusuf Saib,

Sorry for late response because i was on leave.

   Using TextView for chat window i have get the idea form APIDemos-
>Text->LogTextBox.
I have modifiy that code just like this replace add button with
EditText and put it at the bottom of screen with send button same like
default messaging application (compose new message screen). After
typing chat message i am getting the text from EditText and apending
it to TextView its working fine but the problem is this when text
length or lines reaches at the bottom of screen text in TextView is
not scrolling  upwards its behavior is same like LogTextBox but i need
to scroll it upward automatically.For example TextView can show 1 to
10 lines at a time but when i add 11th line i need TextView scroll one
line upward and show me 2 to 11 lines and so on its scrolling upwards
line by line. How it is possible?

I am saving this text in string array line by line against a userId in
hash table.Now i moved from chatwindow to contacts list and again
comeback on chatwindow.For example i have added 100 lines before
moving to contacts list and when i comeback on chatwindow I need its
show me last 10 lines form 91 to 100. How I can do it? its right
approach to make chat window? any useful link or tutorial?

Hopes you understand my problem.

Thanks,
Gulfam Hassan

On Aug 13, 11:34 pm, "Yusuf Saib (T-Mobile USA)" <yusuf.s...@t-
Mobile.com> wrote:
> Can you give more details on the problems you encountered with
> TextView or ListView?
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 13, 2:50 am, Gulfam <[email protected]> wrote:
>
> > Hi,
>
> >   I have tried way recommended by Jeff but i think its not perfect
> > solution
> >  any one can help more regarding this.
> > Jeff V V Thanks for your response.
>
> > Regards
> > Gulfam Hassan
>
> > On Aug 13, 11:36 am, Jeff Sharkey <[email protected]> wrote:
>
> > > If you'll be working with long conversations, you should look at using
> > > a ListView to keep scrolling efficient.  Also, ListView offers
> > > android:transcriptMode, which will can help automatically scroll back
> > > to the bottom when new messages arrive.
>
> > > j
>
> > > On Wed, Aug 12, 2009 at 7:28 AM, Gulfam<[email protected]> wrote:
>
> > > > Hi every body,
>
> > > >    I am working on IM and i want to make Chat Window but i don't know
> > > > how to start it. Currently I am using EditText field, a text view and
> > > > a button, after entering text in EditText field on pressing send
> > > > button i am getting text from EditText filed and appending it to
> > > > TextView its looking good but there are some problems, and i don't
> > > > know its right approach or not ? Any one can refer me any tutorial or
> > > > any useful link regarding this or any other help ?.
>
> > > > Thanks  in advance.
>
> > > > Gulfam Hassan
>
> > > --
> > > Jeff Sharkey
> > > [email protected]
>
>
--~--~---------~--~----~------------~-------~--~----~
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