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.

Custom font for StepperLayout tab title

See original GitHub issue

Is there any way to set custom TypeFace for StepperLayout’s tab title?

I have tried this way:

mStepperlayout.setAdapter(new CustomStepperAdapter(getChildFragmentManager())); TextView mStepTitle = (TextView) mStepperLayout.findViewById(R.id.ms_stepTitle); Typeface mFont = Typeface.createFromAsset(getActivity().getAssets(), "CustomFont.ttf"); mStepTitle.setTypeface(mFont);

This works for navigation bar buttons but does not work tab titles, any idea?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zawadz88commented, Nov 30, 2016

Hi @adiga-maf ,

  1. git clone https://github.com/stepstone-tech/android-material-stepper
  2. Modify the layouts to your needs
  3. ./gradlew assembleRelease
  4. Get the AAR file from the build folder
  5. Add in the project as described here: http://stackoverflow.com/questions/24506648/adding-local-aar-files-to-gradle-build-using-flatdirs-is-not-working
0reactions
zawadz88commented, Feb 7, 2017

Done in #49 and released in 2.2.0. Please see the ‘Custom StepperLayout theme’ sample for an example of how to do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Typeface in ActionBar's Tab Title - Stack Overflow
I'm trying to set a custom Typeface on my ActionBar tabs' titles. I have seen more developers asking for a proper way to...
Read more >
How to Use Google Fonts and Custom Fonts in Jotform
Open the Form Designer panel in Form Builder. · Go to the Styles tab. · Paste your Google Fonts import code in the...
Read more >
How Do I Add a Custom Font to My Website Title on ...
To do this, go to the Design tab of your site, click on Fonts, and then click the Upload Fonts button. From here,...
Read more >
Applying custom fonts to text | Apple Developer Documentation
You can find the postscript name of a font by opening it with the Font Book app and selecting the Font Info tab....
Read more >
How to Change Fonts in material Tab Layout's tabs -
Follow these 3 steps to customize your fonts in tabs ... Note: There is no need to write the exact style name, you...
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