Sorry Again but i realized something that i want the view not the content of the addapter so i made new debugging and found that the ading functionhave the strange problem

 

Intialization:

timeRow=new ArrayAdapter(c,R.layout.time_row);

 

where time_row is the layout for that ArrayAdapter called timeRow

 

timeRow.addObject(totalTime);

timeListView.setAdapter(timeRow);

 

timeListView is object refrencing to the list view in the GUI

 

but when i see the debugging I found that the timeRow contain data i added totalTime where the totalTime is a string contain the data shape

 

but after the second line is executed the timeListView is still contain null views but the adapter contain the data so how i can tell the timeListView to create views for that adapter



 
Yours,
     --( H o H i )--


--- On Wed, 5/7/08, Dan U. <[EMAIL PROTECTED]> wrote:
From: Dan U. <[EMAIL PROTECTED]>
Subject: [android-beginners] Re: I have a strange Bug
To: "Android Beginners" <[email protected]>
Date: Wednesday, May 7, 2008, 10:05 PM

I think you should try something like
songListView.getAdapter().getItem(mNowPlaying) and I think it will be
a TextView object in your case.

On May 7, 11:23 am, Ahmed Abdel samea <[EMAIL PROTECTED]> wrote:
> i am making a music player called Mobi3
>
> I had a strange problem when i made a playlist of the form of ListView and
contain all music in it like the one in WinAmp
>
> so when i shuffle i delete all entries in the listview then get the new
entries after shuffle and insert it in the list view again.
>
> and if a song was played i colourize this song with red colour so i wrote
this code:
>
>
>
>           TextView tv=(TextView)(songListView.getChildAt(mNowPlaying));
>           tv.setTextColor(0xFFFF0000);
>
>
>
> but what happens songListView contain the new list i see it in the
debugger window but i found that the tv contain null so i checked on
mNowPlaying i found it a number in the array adapter in the songListView so i
dont know why that happen
>
> Yours,
>
>      --( H o H i )--Be a better friend, newshound, and know-it-all with
Yahoo! Mobile.Try it now.

      
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-no...
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to