On 15/10/11 23:57, [email protected] wrote:
> How do you made the Array Adapter work I'm having problems with the
> Array adapter constructor.
public class ArrayAdapter_MsgView<T> : ArrayAdapter<String>
{
public ArrayAdapter_MsgView(Context context, int
textViewResourceId, IList<String> items): base(context,
textViewResourceId, items)
{
clsMainActivity.Inbox_ArrayAdapter = this;
}
public override void NotifyDataSetChanged()
{
clsMainActivity.Instance.RunOnUiThread( new Action(()=> {
base.NotifyDataSetChanged();
}));
}
}
and then for the activity:
[Activity(Label = "My Activity")]
public class activityTabInbox : ListActivity
{
> List<String> myList = new List<String>;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
ListAdapter = new ArrayAdapter_MsgView<String> (this,
Resource.Layout.message_itemView, myList)
.....
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid