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.
--~--~---------~--~----~------------~-------~--~----~
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