public async void LoadInfo() { var tmp = await new GetTopicService(Animations).GetAllOnlineCategoryAsync(); CategoryesDownload.SetAdapter(new CategoryDownloadinAdapter(tmp.Select(o => new CategoryAndroid { Img = o.Img, Name = o.Name, Selected = false }), SelectCategory)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_download); Categoryes = new List <string>(); CategoryesDownload = FindViewById <RecyclerView>(Resource.Id.CategoryesDownload); DownloadBtn = FindViewById <Button>(Resource.Id.DownloadBtn); WithImage = FindViewById <CheckBox>(Resource.Id.WithImage); DownloadBtn.Click += Download; CategoryesDownload.SetLayoutManager(new GridLayoutManager(this, 3)); Animations = new AndroidAnimations(this); LoadInfo(); }