private void CreateSwipeButtons() { var editButton = new SwipeButton { ButtonType = SwipeButtonType.Edit, Text = "Edytuj", Color = Color.FromHex("#4054B2"), ImageSource = (FileImageSource)Application.Current.Resources["EditList"] }; var deleteButton = new SwipeButton { ButtonType = SwipeButtonType.Delete, Text = "Usuń", Color = Color.FromHex("#F6585D"), ImageSource = (FileImageSource)Application.Current.Resources["Delete"] }; deleteButton.Clicked += DeleteButtonOnClicked; editButton.Clicked += EditButtonOnClicked; RightSwipeButtons = new List <SwipeButton> { editButton, deleteButton }; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.RouteDataResult); imgLeftCorner = FindViewById <ImageView>(Resource.Id.imageView1); gelen3DModel = JsonConvert.DeserializeObject <Model3D>(Intent.GetStringExtra("3D_Model")); //imgGo1 = FindViewById<ImageView>(Resource.Id.imageView2); //imgGo2 = FindViewById<ImageView>(Resource.Id.imageView3); imgLeftCorner.SetImageResource(Resource.Drawable.user_ico); //imgGo1.SetImageResource(Resource.Drawable.go); //imgGo2.SetImageResource(Resource.Drawable.go); //imgGo1.Click += ImgGo1_Click; txtLength = FindViewById <TextView>(Resource.Id.rdLength); txtShoulds = FindViewById <TextView>(Resource.Id.rdShoulds); txtNeck = FindViewById <TextView>(Resource.Id.rdNeck); txtTihgs = FindViewById <TextView>(Resource.Id.rdTihgs); txtWaist = FindViewById <TextView>(Resource.Id.rdWeist); txtKnee = FindViewById <TextView>(Resource.Id.rdKnee); txtBiceps = FindViewById <TextView>(Resource.Id.rdBiceps); txtChest = FindViewById <TextView>(Resource.Id.rdChest); txtCalves = FindViewById <TextView>(Resource.Id.rdKalves); txtHips = FindViewById <TextView>(Resource.Id.rdHips); txtLength.Text = gelen3DModel.Boy.ToString(); txtShoulds.Text = gelen3DModel.Omuz.ToString(); txtNeck.Text = gelen3DModel.Neck.ToString(); txtTihgs.Text = gelen3DModel.Tighs.ToString(); txtWaist.Text = gelen3DModel.Karin.ToString(); txtKnee.Text = gelen3DModel.Knee.ToString(); txtBiceps.Text = (gelen3DModel.Knee / 2).ToString(); txtHips.Text = gelen3DModel.Hips.ToString(); txtCalves.Text = gelen3DModel.Calves.ToString(); txtChest.Text = gelen3DModel.Chest.ToString(); txtEktomorph = FindViewById <TextView>(Resource.Id.txtEktomorph); txtEndomorph = FindViewById <TextView>(Resource.Id.txtEndomorph); txtMesomorph = FindViewById <TextView>(Resource.Id.txtMesomorph); txtEktomorph.Text = "%73,3"; txtEndomorph.Text = "%26,7"; txtMesomorph.Text = "%0"; swipeNutration = FindViewById <SwipeButton>(Resource.Id.swipe_btn_son); swipeNutration.SetOnStateChangeListener(this); imageAnimation(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.PersonValueInteraction); gelen3DModel = JsonConvert.DeserializeObject <Model3D>(Intent.GetStringExtra("3D_Model")); btnGoRouteDataResult = FindViewById <CircularPulsingButton>(Resource.Id.btnGoRoutingData); btnGoRouteDataResult.Click += BtnGoRouteDataResult_Click; swipeGoData = FindViewById <SwipeButton>(Resource.Id.swipeGoRoutingData); swipeGoData.SetOnStateChangeListener(this); seekBarLenght = FindViewById <BubbleSeekBar>(Resource.Id.seekBarLengthBubble); // seekBarWeight = FindViewById<BubbleSeekBar>(Resource.Id.seekBarWeightBubble); seekBarNeck = FindViewById <BubbleSeekBar>(Resource.Id.seekBarNeckBubble); seekBarShoulder = FindViewById <BubbleSeekBar>(Resource.Id.seekBarShoulderBubble); seekBarChest = FindViewById <BubbleSeekBar>(Resource.Id.seekBarChestBubble); seekBarBiceps = FindViewById <BubbleSeekBar>(Resource.Id.seekBarBicepsBubble); seekBarWaist = FindViewById <BubbleSeekBar>(Resource.Id.seekBarWaistBubble); seekBarHips = FindViewById <BubbleSeekBar>(Resource.Id.seekBarHipsBubble); seekBarTihgs = FindViewById <BubbleSeekBar>(Resource.Id.seekBarTighsBubble); seekBarKnee = FindViewById <BubbleSeekBar>(Resource.Id.seekBarKneeBubble); seekBarCalves = FindViewById <BubbleSeekBar>(Resource.Id.seekBarCalvesBubble); seekBarLenght.SetProgress(gelen3DModel.Boy); //seekBarWeight.SetProgress(gelen3DModel.Kilo); seekBarNeck.SetProgress(gelen3DModel.Neck); seekBarChest.SetProgress(gelen3DModel.Chest); seekBarShoulder.SetProgress(gelen3DModel.Omuz); seekBarWaist.SetProgress(gelen3DModel.Karin); seekBarHips.SetProgress(gelen3DModel.Hips); seekBarTihgs.SetProgress(gelen3DModel.Tighs); seekBarKnee.SetProgress(gelen3DModel.Knee); seekBarCalves.SetProgress(gelen3DModel.Calves); // bir bak seekBarBiceps.SetLayerType(LayerType.Hardware,Android.Graphics.Paint co) seekBarsAnimation(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); rlt = FindViewById <LinearLayout>(Resource.Id.linearLayout1); swipeBtnGoGoGo = FindViewById <SwipeButton>(Resource.Id.swipeBtn_Data); swipeBtnGoGoGo.Click += SwipeBtnGoGoGo_Click; swipeBtnGoGoGo.StateChange += SwipeBtnGoGoGo_StateChange; cameraView = FindViewById <SurfaceView>(Resource.Id.surface_view); imageCameraProp = FindViewById <ImageView>(Resource.Id.imageCamera); imageCameraProp.SetImageResource(Resource.Drawable.Kamera_Button); imageCameraProp.Click += ImageCameraProp_Click; imageDataProp = FindViewById <ImageView>(Resource.Id.imageData); imageDataProp.SetImageResource(Resource.Drawable.data_final); imageDataProp.Click += ImageDataProp_Click; txtBoyAd = FindViewById <TextView>(Resource.Id.txtBoyAd); txtOmuzAd = FindViewById <TextView>(Resource.Id.txtOmuzAd); txtChestAd = FindViewById <TextView>(Resource.Id.txtChestAd); layout_Deneme = FindViewById <LinearLayout>(Resource.Id.linearLayout1); txtBoyDeger = FindViewById <TextView>(Resource.Id.txtBoyDeger); txtKarinDeger = FindViewById <TextView>(Resource.Id.txtKarinDeger); txtOmuzDeger = FindViewById <TextView>(Resource.Id.txtOmuzDeger); txtChestDeger = FindViewById <TextView>(Resource.Id.txtChestDeger); txtHipsDeger = FindViewById <TextView>(Resource.Id.txtHipsValue); txtTighsDeger = FindViewById <TextView>(Resource.Id.txtThigsValue); txtCalvesDeger = FindViewById <TextView>(Resource.Id.txtCalvesValue); txtKneeDeger = FindViewById <TextView>(Resource.Id.txtKneeValue); txtNeckDeger = FindViewById <TextView>(Resource.Id.txtNeckValue); txtCalvesDeger = FindViewById <TextView>(Resource.Id.txtCalvesValue); TextRecognizer textRecognizer = new TextRecognizer.Builder(ApplicationContext).Build(); if (!textRecognizer.IsOperational) { Log.Error("Main Activity", "Detector dependencies are not yet available"); } else { cameraSource = new CameraSource.Builder(ApplicationContext, textRecognizer) .SetFacing(CameraFacing.Back) .SetRequestedPreviewSize(1280, 1024) .SetRequestedFps(2.0f) .SetAutoFocusEnabled(true) .Build(); cameraView.Holder.AddCallback(this); textRecognizer.SetProcessor(this); } //btnCircularCheckButon = FindViewById<CircularPulsingButton>(Resource.Id.btnCircularCheck); //btnCircularCheckButon.Click +=//btnCircularCheckButon_Click; }