TabStripItem formatting text on Android #9880
Unanswered
CosmanAgraz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with Tabs / TabStrip / TabStripItem and I'm running into a problem (this is only tested on Android).
I'm creating a Label using a FormattedString and Span tags. Each Span tag has its own style (its own fontSize / fontWeight).
When I attach this Label to the TabStripItem 'label' property, it removes the Span's style and resets it all to default.
Here's my code:
Tab creation here:
As you can see, the fontSize change gets applied when the Label is displayed on the StackLayout but not inside the TabStripItem
Oddly enough, changing the TabStripItem object's "textTransform" to "none" removes the uppercasing:
I'm just wondering how I can edit the Tab's label css programmatically. I'm using dynamic data. Number of tabs / name and content is all dynamic.
Beta Was this translation helpful? Give feedback.
All reactions