Ramotion / paper-onboarding-android

:octocat: PaperOnboarding is a material design slider made by @Ramotion
https://www.ramotion.com/paper-onboarding-android/
MIT License
2.56k stars 421 forks source link

Fix for issue #58 #59

Open OdeyFox opened 3 years ago

OdeyFox commented 3 years ago

Fix for issue #58

Usage


    PaperOnboardingPage scr1 = new PaperOnboardingPage("Hotels", "All hotels and hostels are sorted by hospitality rating",
                Color.parseColor("#678FB4"), R.drawable.hotels, R.drawable.key);

        scr1.setImageUrl("https://en.wikipedia.org/wiki/Pikachu#/media/File:Pok%C3%A9mon_Pikachu_art.png");
        scr1.setImageWidth(200);
        scr1.setImageHeight(100);
        scr1.setTitleTextColor(Color.parseColor("#FFFFFF"));
        scr1.setDescriptionTextColor(Color.parseColor("#FFFFFF"));
        scr1.setTitleTextSize(50);
        scr1.setDescriptionTextSize(30);
        scr1.setTitleTextStyle(TextStyle.BOLD_ITALIC);
        scr1.setDescriptionTextStyle(TextStyle.ITALIC);