Hello everyone.
Is it possible to set the font size of numbers for each Text = 30 and the font size of Text = 20 by using GetMetric Device Extension?
Enlarge_FontSize_Of_Number.aia (124.6 KB)
Hello everyone.
Is it possible to set the font size of numbers for each Text = 30 and the font size of Text = 20 by using GetMetric Device Extension?
Enlarge_FontSize_Of_Number.aia (124.6 KB)
I do not believe it is possible to change the font size of just one character, or many individual characters in a textbox. You could probably do something in html with javascript and css.
Android provides a way to change and customize each individual characters to a text based view, maybe someone could implement it.
I hope there is a way to implement it because I tried hard to find some way to change the font size of this character but I was not be able to do it.
I think I know how to do it.
Wait I'll try to make an extension.
Can you please check if this works :
ShubhamText.aix (7.6 KB)
I can't test it at the current moment.
The Button related components may not work but the Label and Checkbox components should
work.
Show an example for relative size (what are the parameters for this - is it a font size) and for htmlColor - is this a color block/a color name or a hex value ?
But it seems that relativeSize
can only be an integer.
Yes. Does that have any problem ?
I'll update it and publish it tomorrow.
Not working here for a Textbox.....(works for a label - but could have done that with html)
Osama was after changing a character in a TEXTBOX
I think Osama could use labels instead of textboxes, his textbox is readonly.
Rather I wonder what he can do with a multiline textbox or a label.
Thanks @Anke for the help in debugging. I've Solved both and will upload it after I solve the TextBox thing, if possible. Have to dig out through many sources.
I didn't notice it was a texbox, sorry.
Waste in Haste.
Thank you all for helping me!
I hope you can find the solution [SHUBHAMR69]
Could you please test this version.
ShubhamText.aix (7.7 KB)
Not 100 % sure if it will work, but it should, because EditText extends TextView
.
The only next option that I know for now, is SpannableStringBuilder.
My Internet Quota is exhausted so I'm having problems in connecting, so I can't test.
Edit : The toIndex
property was taking one less index fixed it and updated this post.
Yes, it seems to work now also with TextBox.
Yes, this seems to work.....
Observations
Maybe using SpannableStringBuilder
might solve this. Wait a while.