question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would like adjustable font sizes for title and description

See original GitHub issue

AppIntro Version: 4.2.0

Device/Android Version: Pixel API 25

Issue details / Repro steps / Use case background: I am trying to customize the description (and title) text so that I can change the font size.

Your Code:

    // Code from OnCreate Method where we use your your default slide (AppIntroFragment)

    frag1 = AppIntroFragment.newInstance("Welcome.", "fonts/bello-pro.ttf", firstText, "fonts/bello-pro.ttf", R.drawable.intro_slide1,  Color.parseColor("#5D6CBA"));
    frag2 = AppIntroFragment.newInstance("Connect With Others.", "fonts/bello-pro.ttf", secondText, "fonts/bello-pro.ttf", R.drawable.intro_slide2, Color.parseColor("#66AC5B"));
    frag3 = AppIntroFragment.newInstance("Create and Join Events.", "fonts/bello-pro.ttf", thirdText, "fonts/bello-pro.ttf", R.drawable.intro_slide3, Color.parseColor("#CC0066"));

    addSlide(frag1);
    addSlide(frag2);
    addSlide(frag3);

    //Code from Oncreate method ends here

   @Override 
   public void onSlideChanged(@Nullable Fragment oldFragment, @Nullable Fragment newFragment) {
    super.onSlideChanged(oldFragment, newFragment);

    // Do something when the slide changes.
    descText = (TextView) findViewById(R.id.description);
    descText.setTextSize(40);
}

Stack trace / LogCat: NONE

paste stack trace and/or log here

FIRST SCREEN screen shot 2017-08-24 at 12 08 11 am

SWITCH TO SECOND SCREEN screen shot 2017-08-24 at 1 03 28 am

SWITCH TO THIRD SCREEN screen shot 2017-08-24 at 1 03 55 am

SWITCH BACK TO SECOND SCREEN screen shot 2017-08-24 at 1 04 07 am

SWITCH BACK TO FIRST SCREEN screen shot 2017-08-24 at 1 06 34 am

NO CHANGES ARE MADE BY SWITCHING SLIDES AFTER THIS

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
avluiscommented, Aug 24, 2017

@paolorotolo Do you think we can add this (setting font sizes to title and description) in the SliderPage model? Since SliderPage is new enough, these changes can be used there without breaking too much of what devs already make use of.

Making use of SliderPage would allow setting a different text size per slide if needed.

This could be part of 4.3.0.

0reactions
AnuthaDevcommented, Mar 23, 2019

@gaadeveloper. Not any way that I know of. Just keep an eye on the releases section 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the right font size in web design? - Pimp my Type
If you want your text to be read, set it at a sufficient size! But what is a good font size, and how...
Read more >
Font Size Guidelines for Responsive Websites (2021 Update)
3. Secondary text should be about 2 sizes smaller than your paragaph text ... For secondary text – like lesser labels, captions, etc....
Read more >
font-size - CSS: Cascading Style Sheets - MDN Web Docs
The font-size CSS property sets the size of the font. Changing the font size also updates the sizes of the font size-relative <length>...
Read more >
Would like adjustable font sizes for title and description #477
Issue details / Repro steps / Use case background: I am trying to customize the description (and title) text so that I can...
Read more >
Font Size & SEO - SiteGuru
Google's Lighthouse tool helps you measure your website fonts to determine mobile-friendliness, which is something good when calculating your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found