Would like adjustable font sizes for title and description
See original GitHub issueAppIntro 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
SWITCH TO SECOND SCREEN
SWITCH TO THIRD SCREEN
SWITCH BACK TO SECOND SCREEN
SWITCH BACK TO FIRST SCREEN
NO CHANGES ARE MADE BY SWITCHING SLIDES AFTER THIS
Issue Analytics
- State:
- Created 6 years ago
- Comments:26 (16 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@paolorotolo Do you think we can add this (setting font sizes to title and description) in the
SliderPage
model? SinceSliderPage
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
.@gaadeveloper. Not any way that I know of. Just keep an eye on the releases section 😊