public NativeListViewAdapter(Activity context, NativeListView view) { _context = context; _tableItems = view.Items.ToList(); }
public NativeListViewSource (NativeListView view) { tableItems = view.Items.ToList (); listView = view; }
public NativeListViewSource(NativeListView view) { _tableItems = new List <string>(view.Items); _listView = view; }
public NativeAndroidListViewAdapter(Activity context, NativeListView view) { this.context = context; tableItems = view.Items.ToList(); }
public NativeListViewSource(NativeListView view) { tableItems = view.Items.ToList(); listView = view; }
private void InitializePorOndas() { StackLayout layoutPrincipal = new StackLayout(); layoutPrincipal.Orientation = StackOrientation.Vertical; layoutPrincipal.VerticalOptions = LayoutOptions.FillAndExpand; layoutPrincipal.HorizontalOptions = LayoutOptions.FillAndExpand; layoutPrincipal.Spacing = 0; StackLayout layoutList = new StackLayout(); layoutList.VerticalOptions = LayoutOptions.FillAndExpand; layoutList.HorizontalOptions = LayoutOptions.FillAndExpand; ListView = new NativeListView(); ListRespostas listRespostas = JsonConvert.DeserializeObject <ListRespostas>(dados); perguntas = perguntas.Where(o => o.IsPergunta && o.selecionado).ToList(); foreach (var pergunta in perguntas) { pergunta.Quantidade = listRespostas.respostas.Where(o => o.idpesquisa04 == pergunta.idpesquisa04).ToList().Sum(o => o.quantidade); pergunta.GraficoLinha = DependencyService.Get <IUtils>().getLineChart(listRespostas.respostas.Where(o => o.idpesquisa04 == pergunta.idpesquisa04).ToList(), pesquisas06); pergunta.GraficoBarra = DependencyService.Get <IUtils>().getBarChart(listRespostas.respostas.Where(o => o.idpesquisa04 == pergunta.idpesquisa04).ToList(), pesquisas06); pergunta.GraficoPizza = null; pergunta.TipoGrafico = 1; } ListView.Items = perguntas; layoutList.Children.Add(ListView); layoutPrincipal.Children.Add(layoutList); StackLayout layoutFooter = new StackLayout(); layoutFooter.BackgroundColor = Color.FromHex("#3F51B5"); layoutFooter.HorizontalOptions = LayoutOptions.FillAndExpand; Button btnCompartilhar = new Button() { Image = "ic_share_variant_white_36dp.png", BackgroundColor = Color.FromHex("#3F51B5"), VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, Text = " Compartilhar", TextColor = Color.FromHex("#FFFFFF") }; btnCompartilhar.SetBinding(Button.CommandProperty, new Binding("CmdCompartilhar", BindingMode.OneWay)); btnCompartilhar.SetBinding(ScrollView.IsVisibleProperty, new Binding("IsRunning", BindingMode.TwoWay, new NegateBooleanConverter())); layoutFooter.Children.Add(btnCompartilhar); layoutFooter.Children.Add(new ActivityIndicatorRunning(Color.White)); layoutPrincipal.Children.Add(layoutFooter); Content = layoutPrincipal; }
public NativeAndroidListViewAdapter(Activity context, NativeListView view) { _context = context; _tableItems = new ObservableCollection <Question>(view.Items); }