public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            _spinner = StyleUtil.ShowSpinner(View,
                                             AppDelegate.ShouldOperateIn12_5Mode ? UIActivityIndicatorViewStyle.WhiteLarge : UIActivityIndicatorViewStyle.Large);
        }
Example #2
0
        async void SetupTableView()
        {
            _spinner     = StyleUtil.ShowSpinner(View, UIActivityIndicatorViewStyle.WhiteLarge);
            _countryList = await _viewModel.GetListOfCountriesAsync();

            if (!_countryList.Any())
            {
                _spinner?.RemoveFromSuperview();
                OnServerError();
                return;
            }

            InvokeOnMainThread(() =>
            {
                TableViewHeightConstraint.Constant = _countryList.Count * CountryTableCell.ROW_HEIGHT;
                _spinner?.RemoveFromSuperview();
                CountryTableView.RegisterNibForCellReuse(CountryTableCell.Nib, CountryTableCell.Key);
                CountryTableView.Source = new CountryTableViewSource(_countryList);
                CountryTableView.ReloadData();
            });
        }
Example #3
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     _spinner = StyleUtil.ShowSpinner(View, UIActivityIndicatorViewStyle.Large);
 }