Set the FontSize Of Numbers = 30

The Reset() Function has been tested succesfully working in Companion, after trying an hour to connect.

But now, we can't apply the next style unless the component is reset.

ShubhamText.aix (8.6 KB)

@Osama_Sayar You can do it even with AppInventor Blocks. I know how to, but try to think a few times.

Will tell you if you can't at last.
But ya, you have to use the aix before the Reset() function was added.

Thank you very much SHUBHAMR69

1 Like

Can you do it or should I tell you ?

I tried so hard :slightly_smiling_face:
Please do it if you can

image

you mean like this? without extension with just 25 blocks
image

image

(Oh sorry, unable to set font size here... need to look into)

Edited

Slightly adjusted

Yes, this is what I mean exactly

Which one you mean, image 1 or 2 or 3

Ok try like this, I have used only two logic meanwhile enable HTMLFormat for the lab

  1. Split the text at
  2. Replace the item
  3. Result..

I mean image 3

1 Like

This is how to do it with my Extension.

Use this version for now :

Tested successfully in Companion.

@Spicy_Topics Do Textboxes have an HTML Format option ? @Osama_Sayar is doing this with TextBoxes.

Also, this will work with Textboxes, Labels, Checkboxes and Button-Based Components.

Btw, this is a one-time use thing, I'll be working on the Reset(AndroidViewComponent component) thing.

Once its done, your problem will be solved.

Actually, instead of waiting for a Reset() method you can use set TextBox1.TextTextBox1.Text

That actually resets this.

So do this :

  1. Get a TextBox Listener Extension From the Community.
  2. Use the OnTextChanged event and first put the set TextBox1.TextTextBox1.Text and under it, put the blocks in the image.

Tested successfully in the Companion.

Please reply or else I wont be able to post anymore in this topic, every topic has a limit of three consecutive posts for non-original-posters.

Its run well now, but you have to change
Initialize local index to 1, not to 0

1 Like

But for me it is working on setting it to 0.

Don't know why.

If I set it to 1, I'll get a runtime error unless I use index - 1.

At last. Evrything is working fine at thee latest version.
Version number = 15, version name = "4.0.9 alpha".

ShubhamText.aix (8.5 KB)

@TIMAI2 and @Anke Thanks for helping me out in testing the extension.

Here are the latest blocks :

Use a TextBox1.OnTextChanged event in some extension instead of Button.Click event if you want to change do this while typing the numbers. @taifun has an extension for this.

But btw, the numbers you use won't be detected by is number ? block, so I'll give you an alternative when I get time. (I know how to achieve this.)

Here is the .aia :

Test.aia (27.8 KB)

This contains what you want.

When you enter any character specified in the list, it will be in a bigger size, other characters will be in normal size. This may lag a bit in low-end devices though, since it works every time text is entered or removed.

Btw, I can even add the AbsoluteSize feature in the extension, so you can directly set the font size to 30. That will take a while.

1 Like

Yeah, almost the same logic only I have used for lab components..

I have set the blocks and still the font of numbers are small.

my blocks and error, all ok setting to 1

I have set the index to 1 and still the font of numbers are small.