Can you post your entire getView method? On Mar 3, 2011 11:46 AM, "NR" <[email protected]> wrote: > Any suggestions how to solve it... i simply call the > notifyDataSetChanged() method in my CustomBaseAdapter class.... > > Do I have to set the adapter again to the listview? like > ListView.setAdapter(adapter) > > On Mar 3, 3:59 pm, Justin Anderson <[email protected]> wrote: >> This sounds like it could be a view recycling issue >> On Mar 3, 2011 3:42 AM, "Namit Rana" <[email protected]> wrote: >> >> >> >> >> >> >> >> > I have a ListView with a custom BaseAdapter. >> >> > in getView(...) in CustomBaseAdapter class... >> >> > I have specified gray color in the 1st row and white color in all >> > other rows. >> >> > if(position==0){ >> > holder.text1.setBackGroundColor(Color.gray) // same for next 2 >> > TextView views. >> > }else{ >> > //set the textview color to white >> > } >> >> > After I change the content of the specific row (all textViews), I >> > call >> > this.notifyDataSetChanged(); >> >> > The data gets updated properly, but the last row of the ListView >> > displays gray color along with the first row. >> > But I have set the gray color to the 1st row.. >> >> > Any help??? >> > Regards >> >> > -- >> > 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 > > -- > 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
-- 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

