protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AddSlide(AppIntroFragment.NewInstance(
                         "Welcome!",
                         "This is a demo of the AppIntro library, with permissions being requested on a slide!",
                         imageDrawable: Resource.Drawable.ic_slide1
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Welcome!",
                         "In order to access your camera, you must give permissions.",
                         imageDrawable: Resource.Drawable.ic_slide2
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Simple, yet Customizable",
                         "The library offers a lot of customization, while keeping it simple for those that like simple.",
                         imageDrawable: Resource.Drawable.ic_slide3
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Explore",
                         "Feel free to explore the rest of the library demo!",
                         imageDrawable: Resource.Drawable.ic_slide4
                         ));

            // Request mandatory camera and location permission
            AskForPermissions(new string[] { Manifest.Permission.Camera, Manifest.Permission.AccessFineLocation }, 2, true);

            // Request optional storage permission
            AskForPermissions(new string[] { Manifest.Permission.WriteExternalStorage }, 3, false);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AddSlide(AppIntroFragment.NewInstance(
                         "Welcome!",
                         "This is a demo of the AppIntro library, with permissions being requested on a slide!",
                         imageDrawable: Resource.Drawable.ic_slide1
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Permission Request",
                         "In order to access your camera, you must give permissions.",
                         imageDrawable: Resource.Drawable.ic_slide2
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Simple, yet Customizable",
                         "The library offers a lot of customization, while keeping it simple for those that like simple.",
                         imageDrawable: Resource.Drawable.ic_slide3
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Explore",
                         "Feel free to explore the rest of the library demo!",
                         imageDrawable: Resource.Drawable.ic_slide4
                         ));

            // Here we ask for camera permission on slide 2
            AskForPermissions(new string[] { Manifest.Permission.Camera }, 2);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AddSlide(AppIntroFragment.NewInstance(
                         "Welcome!",
                         "This is a demo of the AppIntro library, with a custom background on each slide!",
                         imageDrawable: Resource.Drawable.ic_slide1
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Clean App Intros",
                         "This library offers developers the ability to add clean app intros at the start of their apps.",
                         imageDrawable: Resource.Drawable.ic_slide2
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Simple, yet Customizable",
                         "The library offers a lot of customization, while keeping it simple for those that like simple.",
                         imageDrawable: Resource.Drawable.ic_slide3
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Explore",
                         "Feel free to explore the rest of the library demo!",
                         imageDrawable: Resource.Drawable.ic_slide4
                         ));

            // Set intro custom background
            BackgroundResource = Resource.Drawable.ic_drawer_header;

            // Change the color of the dot indicator.
            SetIndicatorColor(Color.Red, Color.Black);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AddSlide(AppIntroFragment.NewInstance(
                         "Welcome!",
                         "This is a demo of the AppIntro library, using the second layout.",
                         imageDrawable: Resource.Mipmap.ic_slide1,
                         backgroundDrawable: Resource.Drawable.back_slide1
                         // titleTypefaceFontRes: Resource.Font.lato,
                         //descriptionTypefaceFontRes: Resource.Font.lato
                         ));

            AddSlide(AppIntroFragment.NewInstance(new SliderPage(
                                                      "Gradients!",
                                                      "This text is written on a gradient background",
                                                      imageDrawable: Resource.Mipmap.ic_slide2,
                                                      backgroundDrawable: Resource.Drawable.back_slide2
                                                      //titleTypeface: "OpenSans-Light.ttf",
                                                      // descriptionTypeface: "OpenSans-Light.ttf"
                                                      )));

            AddSlide(AppIntroFragment.NewInstance(
                         "Simple, yet Customizable",
                         "The library offers a lot of customization, while keeping it simple for those that like simple.",
                         imageDrawable: Resource.Mipmap.ic_slide3,
                         backgroundDrawable: Resource.Drawable.back_slide3
                         // ,titleTypefaceFontRes: Resource.Font.opensans_regular,
                         // descriptionTypefaceFontRes: Resource.Font.opensans_regular
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Explore",
                         "Feel free to explore the rest of the library demo!",
                         imageDrawable: Resource.Mipmap.ic_slide4,
                         backgroundDrawable: Resource.Drawable.back_slide4
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         ":)",
                         "...gradients are awesome!",
                         imageDrawable: Resource.Mipmap.icon,
                         backgroundDrawable: Resource.Drawable.back_slide5
                         ));
            //do you can implement this
            //SystemBackButtonLocked = true;
            //SkipButtonEnabled = true;
            //SetSkipText("PULAR");
            //SetDoneText("FINALIZAR");
            //SetImmersiveMode();
            SetTransformer(new AppIntroPageTransformerType.Parallax());
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);

                AddSlide(AppIntroFragment.NewInstance(GetString(Resource.String.Lbl_Title_page1),
                                                      GetString(Resource.String.Lbl_Description_page1), Resource.Drawable.Image_page1,
                                                      Color.ParseColor("#2d4155")));
                AddSlide(AppIntroFragment.NewInstance(GetString(Resource.String.Lbl_Title_page2),
                                                      GetString(Resource.String.Lbl_Description_page2), Resource.Drawable.Image_page2,
                                                      Color.ParseColor("#fcb840")));
                AddSlide(AppIntroFragment.NewInstance(GetString(Resource.String.Lbl_Title_page3),
                                                      GetString(Resource.String.Lbl_Description_page3), Resource.Drawable.Image_page3,
                                                      Color.ParseColor("#2485c3")));
                AddSlide(AppIntroFragment.NewInstance(GetString(Resource.String.Lbl_Title_page4),
                                                      GetString(Resource.String.Lbl_Description_page4), Resource.Drawable.Image_page4,
                                                      Color.ParseColor("#9244b1")));

                if (Settings.Walkthrough_SetFlowAnimation)
                {
                    SetFlowAnimation();
                }
                else if (Settings.Walkthrough_SetZoomAnimation)
                {
                    SetZoomAnimation();
                }
                else if (Settings.Walkthrough_SetSlideOverAnimation)
                {
                    SetSlideOverAnimation();
                }
                else if (Settings.Walkthrough_SetDepthAnimation)
                {
                    SetDepthAnimation();
                }
                else if (Settings.Walkthrough_SetFadeAnimation)
                {
                    SetFadeAnimation();
                }

                //AskForPermissions( new string[]{ Manifest.Permission.Camera},3 );
                ShowStatusBar(false);
                SetBarColor(Color.ParseColor("#333639"));
                SetSeparatorColor(Color.ParseColor("#2196f3"));
            }
            catch (Exception e)
            {
                Crashes.TrackError(e);
            }
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AddSlide(AppIntroFragment.NewInstance("Title here", "Description here...\nYeah, I've added this fragment programmatically", Resource.Drawable.ic_slide1, Color.ParseColor("#2196F3")));

            AddSlide(AppIntroFragment.NewInstance("HTML Description", "<b>Description bold...</b><br><i>Description italic...</i>", Resource.Drawable.ic_slide1, Color.ParseColor("#2196F3")));

            SetBarColor(Color.ParseColor("#3F51B5"));
            SetSeparatorColor(Color.ParseColor("#2196F3"));
            ShowSkipButton(false);

            SetVibrate(true);
            SetVibrateIntensity(30);
        }
Exemple #7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AddSlide(AppIntroFragment.NewInstance(
                         "Welcome!",
                         "This is a demo of the AppIntro library, using the second layout.",
                         imageDrawable: Resource.Drawable.ic_slide1,
                         backgroundDrawable: Resource.Drawable.back_slide1,
                         titleTypefaceFontRes: Resource.Font.lato,
                         descriptionTypefaceFontRes: Resource.Font.lato
                         ));

            AddSlide(AppIntroFragment.NewInstance(new SliderPage(
                                                      "Gradients!",
                                                      "This text is written on a gradient background",
                                                      imageDrawable: Resource.Drawable.ic_slide2,
                                                      backgroundDrawable: Resource.Drawable.back_slide2,
                                                      titleTypeface: "OpenSans-Light.ttf",
                                                      descriptionTypeface: "OpenSans-Light.ttf"
                                                      )));

            AddSlide(AppIntroFragment.NewInstance(
                         "Simple, yet Customizable",
                         "The library offers a lot of customization, while keeping it simple for those that like simple.",
                         imageDrawable: Resource.Drawable.ic_slide3,
                         backgroundDrawable: Resource.Drawable.back_slide3,
                         titleTypefaceFontRes: Resource.Font.opensans_regular,
                         descriptionTypefaceFontRes: Resource.Font.opensans_regular
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         "Explore",
                         "Feel free to explore the rest of the library demo!",
                         imageDrawable: Resource.Drawable.ic_slide4,
                         backgroundDrawable: Resource.Drawable.back_slide4
                         ));

            AddSlide(AppIntroFragment.NewInstance(
                         ":)",
                         "...gradients are awesome!",
                         imageDrawable: Resource.Mipmap.ic_launcher,
                         backgroundDrawable: Resource.Drawable.back_slide5
                         ));

            SetTransformer(new AppIntroPageTransformerType.Parallax());
        }