private async void Init() { sjcGoldRate = ConvertXmlToObject(await GetData()); adapter = new CityAdapter(sjcGoldRate); rvCities.SetLayoutManager(new LinearLayoutManager(this)); rvCities.SetAdapter(adapter); tvTitle.Text = sjcGoldRate.Title; tvUrl.Text = sjcGoldRate.Url; tvUpdatedTime.Text = sjcGoldRate.CityList.UpdatedTime; tvUnit.Text = sjcGoldRate.CityList.Unit; }
public CityAdapter(SjcGoldRate sjcGoldRate) { this.sjcGoldRate = sjcGoldRate; }