Yes, I already tried it:
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
- cannot set a smaller relative size once a larger one is set, without resetting the textbox
- relative size accepts decimals - e.g. 1.25, 1.5
- Allows for setting of multiple selections, with different sizes
Maybe using SpannableStringBuilder
might solve this. Wait a while.
Could perhaps do with a reset function?
Example on Osama's numbers
Ok Adding that. But at this moment it will reset only the last used component.
Added the Reset() function.
@TIMAI2 Is it working ?
@Anke I tried to solve this one too, please check once more.
Much thanks to both of you.
ShubhamText.aix (8.1 KB)
I don't get this error.