protected override void OnCreate(Bundle bundle) { RequestWindowFeature(WindowFeatures.NoTitle); Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen); base.OnCreate(bundle); SetContentView(Resource.Layout.Organizator_Trip_NewQuestionPool); IntroducereIntrebare = FindViewById <RelativeLayout>(Resource.Id.relativeLayout2); SetareVariante = FindViewById <RelativeLayout>(Resource.Id.relativeLayout3); SetareDurata = FindViewById <RelativeLayout>(Resource.Id.relativeLayout4); Container = FindViewById <FrameLayout>(Resource.Id.frameLayout1); TextView TView_IntroducereIntrebare = FindViewById <TextView>(Resource.Id.textView1); TextView TView_SetareVariante = FindViewById <TextView>(Resource.Id.textView2); TextView TView_SetareDurata = FindViewById <TextView>(Resource.Id.textView3); SetTypeface.Normal.SetTypeFace(this, TView_IntroducereIntrebare); SetTypeface.Normal.SetTypeFace(this, TView_SetareVariante); SetTypeface.Normal.SetTypeFace(this, TView_SetareDurata); Animation Slide_Speed1 = AnimationUtils.LoadAnimation(this, Resource.Animation.SlideRightToLeft_Speed1); Animation Slide_Speed2 = AnimationUtils.LoadAnimation(this, Resource.Animation.SlideRightToLeft_Speed2); Animation Slide_Speed3 = AnimationUtils.LoadAnimation(this, Resource.Animation.SlideRightToLeft_Speed3); IntroducereIntrebare.StartAnimation(Slide_Speed1); SetareVariante.StartAnimation(Slide_Speed2); SetareDurata.StartAnimation(Slide_Speed3); IntroducereIntrebare.Click += IntroducereIntrebare_Click; SetareVariante.Click += SetareVariante_Click; SetareDurata.Click += SetareDurata_Click; IntroducereIntrebare_Fragment = new Organizator_Trip_NewQuestionPool_IntroducereIntrebare(); SetareVariante_Fragment = new Organizator_Trip_NewQuestionPool_SetareVariante(); SetareDurata_Fragment = new Organizator_Trip_NewQuestionPool_SetareDurata(IntroducereIntrebare_Fragment, SetareVariante_Fragment); FragmentTransaction transact = FragmentManager.BeginTransaction(); transact.Add(Container.Id, IntroducereIntrebare_Fragment, "IntroducereIntrebare"); transact.Add(Container.Id, SetareVariante_Fragment, "SetareVariante"); transact.Add(Container.Id, SetareDurata_Fragment, "SetareDurata"); transact.Hide(IntroducereIntrebare_Fragment); transact.Hide(SetareVariante_Fragment); transact.Hide(SetareDurata_Fragment); transact.Commit(); }
public Organizator_Trip_NewQuestionPool_SetareDurata(Organizator_Trip_NewQuestionPool_IntroducereIntrebare IntroducereIntrebare, Organizator_Trip_NewQuestionPool_SetareVariante SetareVariante) { this.IntroducereIntrebare = IntroducereIntrebare; this.SetareVariante = SetareVariante; }