protected async override void OnResume() { base.OnResume(); var groups = await FaceClient.Shared.GetPersonGroups(); var listView = FindViewById <ListView> (Resource.Id.list_person_groups_identify); personGroupListAdapter = new PersonGroupsListAdapter(groups); listView.Adapter = personGroupListAdapter; listView.OnItemClickListener = this; if (groups.Count > 0) { SetPersonGroupSelected(0); } else { SetPersonGroupSelected(-1); } select_image.Click += Select_Image_Click; manage_person_groups.Click += Manage_Person_Groups_Click; identify.Click += Identify_Click; view_log.Click += View_Log_Click; }
protected override void OnResume() { base.OnResume(); listView.ItemClick += ListView_ItemClick; add_person_group.Click += Add_Person_Group_Click; done_and_save.Click += Done_And_Save_Click; personGroupsListAdapter = new PersonGroupsListAdapter(this); listView.Adapter = personGroupsListAdapter; }
protected override async void OnResume() { base.OnResume(); listView.ItemClick += ListView_ItemClick; add_person_group.Click += Add_Person_Group_Click; done_and_save.Click += Done_And_Save_Click; var groups = await FaceClient.Shared.GetPersonGroups(); personGroupsListAdapter = new PersonGroupsListAdapter(groups, true); listView.Adapter = personGroupsListAdapter; //reset current group FaceState.Current.CurrentGroup = null; }
public SetOnCheckedChangeListener(PersonGroupsListAdapter adap, int pos) { this.adapter = adap; this.position = pos; }