Exemplo n.º 1
0
        public static void Run(Activity context, Application application)
        {
            CrossVersionTracking.Current.Track();

            AnalyticsManager.Shared.ConfigureHockeyApp(context, application);

            AndroidPclExportClient.Configure();

            JsonHttpClient.GlobalHttpMessageHandlerFactory = () => new NativeMessageHandler();

            Settings.VersionNumber = CrossVersionTracking.Current.CurrentVersion;

            Settings.BuildNumber = CrossVersionTracking.Current.CurrentBuild;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);


            AndroidPclExportClient.Configure();

            JsonHttpClient.GlobalHttpMessageHandlerFactory = () => new ModernHttpClient.NativeMessageHandler();


            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button> (Resource.Id.myButton);

            button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };
        }
Exemplo n.º 3
0
        public static Page GetMainPage()
        {
            AndroidPclExportClient.Configure();
            //			var nrb = new Button () {
            //				Text = "NR",
            //				BackgroundColor = Color.Lime,
            //				WidthRequest = 50,
            //				HeightRequest = 50
            //			};
            //
            //			var rb = new Button () {
            //				BorderRadius = 25,
            //				Text = "R",
            //				BackgroundColor = Color.Aqua,
            //				WidthRequest = 50,
            //				HeightRequest = 50
            //			};



            //			rb.GestureRecognizers = new TapGestureRecognizer () {
            //
            //			};

            var absLayout = new AbsoluteLayout();

            absLayout.Children.Add(new MyFrame(25), new Point(20, 20));
            absLayout.Children.Add(new MyFrame(25), new Point(100, 20));

            //			var tapped = new TapGestureRecognizer () {
            //				NumberOfTapsRequired = 1
            //			};
            //			tapped.Tapped += (sender, e) => {
            //				absLayout.Children.Add(generateNewButton(), e.
            //			};



            return(new ContentPage {
                Content = absLayout
            });
        }
Exemplo n.º 4
0
 public new static void Configure()
 {
     AndroidPclExportClient.Configure();
     Configure(Provider);
 }