You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: