Spencer wrote
> Try calling ca.NotifyDataSetChanged() after you've reloaded your adapter
> from the service.
What should be in that method? I put this method in the adapter, but not
sure how to implement. It gets called, but the list still doesn't get
displayed.
public override void NotifyDataSetChanged()
{
base.NotifyDataSetChanged();
global::Android.Util.Log.Warn(tag, "inside
notifydatasetchanged");
}
This is in the activity:
foreach (var c in contacts)
{
global::Android.Util.Log.Warn(tag, "record:" +
c.EmailAddress);
ca.Add(c);
global::Android.Util.Log.Warn(tag, "ca.count after: " +
ca.Count);
}
ca.NotifyDataSetChanged();
Also, the ca.Count call is always zero, even when c.EmailAddress has value
and has been added to ca?
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/AutoCompleteTextView-con-t-tp5713327p5713333.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid