I set label2.text with ‘font size’ html tag as below (html format is on).
am I missing something because all other tags working
I do this with
its not good enough if I want to control on different font size in the same label
like this: howareyou
and any way html format is on so it shoud work
you have an extra space between <font size and = and after = another extra space,
nice catch. I did it but no change
I think its a bug because I put basic html tag
yes font size html is not working, else all working,
Doubt that it is a bug since we control it with this, through blocks or designer
My meaning was that font size tag html isn’t functioning even after font size set in designer
i.e - I can set ‘text color’ from desginer but its not prevent from me to override it trough ‘font color’ html tag
I can confirm that
<font size="12">This is some text!</font>
is not working.
It shows only the text This is some text!, and not the whole phrase, but font size doesn’t change.
Yes, maybe something like this might help:
<h1 style="font-size:300%;">This is a text</h1>
<h2 style="font-size:200%;">This is a text</h2>
<h3 style="font-size:100%;">This is a text</h3>
<h4 style="font-size:100%;">This is a text</h4>
This is a text
This is a text
This is a text
This is a text
But I’m not very familiar with html / css formatting.
https://www.w3schools.com/html/html_styles.asp
that are not working in app,
what is not working?
you can find a list of the working tags in the documentation of the notifier User Interface Components - App Inventor for Android
- The messages in the dialogs (but not the alert) can be formatted using the following HTML tags:
<b>, <big>, <blockquote>, <br>, <cite>, <dfn>, <div>, <em>, <small>, <strong>, <sub>, <sup>, <tt>. <u>
- You can also use the font tag to specify color, for example,
<font color="blue">
. Some of the available color names are aqua, black, blue, fuchsia, green, grey, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow
Taifun
Yes header is working its better then nothing altough its not flexible as font size.
Ok the conclusion is that font size not supported, thanks for the list
Hi all.
Wondering why ListView Font Size is not supported? My list is unreadable if user has phone font size set to largest setting. And no, I don’t want to ask the user if I can change their settings. This code works just fine with labels and buttons, but crashes when used with ListView Font Size:
Crashes with this error:
Attempt to invoke virtual method ‘float android.widget.TextView.getTextSize()’ on a null object reference
And it is not TaifunSettings that is causing the problem, I get the same crash if I simply try to display with a notifier:
Even a method to automatically increase vertical size of each list item (so all text is displayed) would be useful.
Any help is, as always, greatly appreciated.