public override View GetSampleContent(Context con1) { con = con1; //sfBusyIndicator sfBusyIndicator = new SfBusyIndicator(con); sfBusyIndicator.IsBusy = true; sfBusyIndicator.TextColor = Color.Rgb(62, 101, 254); sfBusyIndicator.AnimationType = AnimationTypes.Ball; sfBusyIndicator.ViewBoxWidth = 150; sfBusyIndicator.ViewBoxHeight = 150; sfBusyIndicator.TextSize = 60; sfBusyIndicator.Title = ""; sfBusyIndicator.SetBackgroundColor(Color.Rgb(255, 255, 255)); FrameLayout mainView = new FrameLayout(con); mainView.AddView(sfBusyIndicator); return(mainView); }
public View GetSampleContent(Context con) { SamplePageContent(con); /****************** **BusyIndicator** ******************/ sfBusyIndicator = new SfBusyIndicator(con); sfBusyIndicator.IsBusy = true; sfBusyIndicator.TextColor = Color.Rgb(62, 101, 254); sfBusyIndicator.AnimationType = AnimationTypes.DoubleCircle; sfBusyIndicator.ViewBoxWidth = 133; sfBusyIndicator.ViewBoxHeight = 133; sfBusyIndicator.TextSize = 60; sfBusyIndicator.Title = ""; sfBusyIndicator.SetBackgroundColor(Color.Rgb(255, 255, 255)); //main view LinearLayout mainView = GetView(con); return(mainView); }
public override View GetSampleContent(Context con) { spinner = new Spinner(con); spinner.SetMinimumHeight(60); spinner.DropDownWidth = 500; spinner.SetBackgroundColor(Color.Gray); List <String> list = new List <String>(); list.Add("Ball"); list.Add("Battery"); list.Add("DoubleCircle"); list.Add("ECG"); list.Add("Globe"); list.Add("HorizontalPulsingBox"); list.Add("MovieTimer"); list.Add("Print"); list.Add("Rectangle"); list.Add("RollingBall"); list.Add("SingleCircle"); list.Add("SlicedCircle"); list.Add("ZoomingTarget"); ArrayAdapter <String> dataAdapter = new ArrayAdapter <String> (con, Android.Resource.Layout.SimpleSpinnerItem, list); dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem); spinner.Adapter = dataAdapter; spinner.ItemSelected += new EventHandler <AdapterView.ItemSelectedEventArgs> (spinner_ItemSelected); TextView textView = new TextView(con); textView.TextSize = 20; textView.Text = "Animation Type"; TextView textView1 = new TextView(con); textView1.TextSize = 10; textView.SetTextColor(Color.Black); TextView textView2 = new TextView(con); textView2.TextSize = 10; textView2.SetTextColor(Color.Black); LinearLayout linearLayout = new LinearLayout(con); linearLayout.SetPadding(20, 20, 20, 30); linearLayout.SetBackgroundColor(Color.Rgb(236, 235, 242)); linearLayout.LayoutParameters = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WrapContent, LinearLayout.LayoutParams.WrapContent); linearLayout.Orientation = Orientation.Vertical; linearLayout.AddView(textView); linearLayout.AddView(textView2); linearLayout.AddView(spinner); linearLayout.AddView(textView1); sfBusyIndicator = new SfBusyIndicator(con); sfBusyIndicator.IsBusy = true; sfBusyIndicator.TextColor = Color.Rgb(62, 101, 254); sfBusyIndicator.AnimationType = AnimationTypes.DoubleCircle; sfBusyIndicator.ViewBoxWidth = 200; sfBusyIndicator.ViewBoxHeight = 200; sfBusyIndicator.TextSize = 60; sfBusyIndicator.Title = ""; sfBusyIndicator.SetBackgroundColor(Color.Rgb(255, 255, 255)); linearLayout.AddView(sfBusyIndicator); // Set our view from the "main" layout resource return(linearLayout); }
public override View GetSampleContent (Context con) { spinner = new Spinner(con); spinner.SetMinimumHeight(60); spinner.DropDownWidth = 500; spinner.SetBackgroundColor(Color.Gray); List<String> list = new List<String>(); list.Add("Ball"); list.Add("Battery"); list.Add("DoubleCircle"); list.Add("ECG"); list.Add("Globe"); list.Add("HorizontalPulsingBox"); list.Add("MovieTimer"); list.Add("Print"); list.Add("Rectangle"); list.Add("RollingBall"); list.Add("SingleCircle"); list.Add("SlicedCircle"); list.Add("ZoomingTarget"); ArrayAdapter<String> dataAdapter = new ArrayAdapter<String> (con, Android.Resource.Layout.SimpleSpinnerItem, list); dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem); spinner.Adapter = dataAdapter; spinner.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner_ItemSelected); TextView textView = new TextView(con); textView.TextSize = 20; textView.Text = "Animation Type"; TextView textView1 = new TextView(con); textView1.TextSize = 10; textView.SetTextColor(Color.Black); TextView textView2 = new TextView(con); textView2.TextSize = 10; textView2.SetTextColor(Color.Black); LinearLayout linearLayout = new LinearLayout(con); linearLayout.SetPadding(20, 20, 20, 30); linearLayout.SetBackgroundColor(Color.Rgb(236,235,242)); linearLayout.LayoutParameters = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WrapContent, LinearLayout.LayoutParams.WrapContent); linearLayout.Orientation = Orientation.Vertical; linearLayout.AddView(textView); linearLayout.AddView(textView2); linearLayout.AddView(spinner); linearLayout.AddView(textView1); sfBusyIndicator = new SfBusyIndicator(con); sfBusyIndicator.IsBusy = true; sfBusyIndicator.TextColor = Color.Rgb(62,101,254); sfBusyIndicator.AnimationType = AnimationTypes.DoubleCircle; sfBusyIndicator.ViewBoxWidth = 200; sfBusyIndicator.ViewBoxHeight = 200; sfBusyIndicator.TextSize = 60; sfBusyIndicator.Title = ""; sfBusyIndicator.SetBackgroundColor(Color.Rgb(255,255,255)); linearLayout.AddView(sfBusyIndicator); // Set our view from the "main" layout resource return linearLayout; }