private void Init() { rvResults.SetLayoutManager(new LinearLayoutManager(this)); var service = new GithubApiServices(); svUsers.QueryTextSubmit += (s, e) => { try { listUser = service.SeachUsers(svUsers.Query); } catch (WebException exception) { Console.WriteLine(exception); return; } if (adapter == null) { adapter = new UserAdapter(listUser); } else { adapter.NotifyDataSetChanged(); } rvResults.SetAdapter(adapter); }; }
private void Init() { login = Intent.GetStringExtra("Login"); services = new GithubApiServices(); try { tvDetail.Text = services.GetUserDetail(login).ToString(); lvRepos.Adapter = new ArrayAdapter(this, Android.Resource.Layout.SimpleListItem1, services.GetUserReposList(login)); } catch (WebException e) { Console.WriteLine(e); throw; } }