Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify text size of the Label and Sublabel #24

Open
ser-dev opened this issue Jun 15, 2017 · 0 comments
Open

Modify text size of the Label and Sublabel #24

ser-dev opened this issue Jun 15, 2017 · 0 comments

Comments

@ser-dev
Copy link

ser-dev commented Jun 15, 2017

Edit: Found the way! See below

Hello, I believe this must be rather simple but I do not find a way to modify the textSize of the Label and Sublabel: https://github.com/drozdzynski/Steppers/blob/5a7b08a7fc0f4329ccd68a884aca1ac734d48cbc/steppers/src/main/res/values/styles.xml

How can I set the text size for the Label and Sublabel?
Thank you!

Edit with solution:
For the SubLabelActive, a friend realized it was just needed to duplicate the SubLabelActive style with our own textSize value in the styles.xml.
I thought this was not allowed/working because I was actually only trying with the LabelActive where I did the same and it did not increase the size... but this style was a bit tricky, see below.

The same did not work with the LabelActive style, and the reason is that it appears in both values folders:
- /res/values/styles.xml
- /res/values-16/styles.xml
So it was enough to create a new res/values-16/ folder for API 16 support containing the styles.xml file with the LabelActive style and the desired textSize.

Maybe it was very evident but I hope it helps other Android beginners like me :)

Thanks once again for this awesome lib!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants