Ejemplo n.º 1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.tablayout);
     ActionBar.NavigationMode = ActionBarNavigationMode.Tabs;
     ActionBar.SetDisplayShowTitleEnabled(false);
     ActionBar.Tab tab = ActionBar.NewTab();
     tab.SetText("LineChart");
     tab.SetIcon(Resource.Drawable.linefix);
     tab.TabSelected += (sender, args) =>
       {
       SetContentView(Resource.Layout.barChart);
       PlotView view = FindViewById<PlotView>(Resource.Id.plot_view_bar);
       CreateLineChart linechart = new CreateLineChart();
       view.Model = linechart.CreatePlotModel();
       };
     ActionBar.AddTab(tab);
 }