Block alignment need it

Please note that these workarounds work for labels, but they are not going to work if you want to change the alignment of a textbox in which you have to type and it has a fixed width.

For that to work, you will have to use the hidden textboxes I mentioned before or the dynamic components solutions.

3 Likes

Also, the HTML feature has problems with some devices

I just wanted to show that it is basically possible.
I would never use it myself.

4 Likes

Since I have no clue when dealing with java, but surprisingly it works, hmm :thinking: maybe, try it LabelTextAlign.aia (10.0 KB)

3 Likes

Wow!
It worked (tested just now)
did u just create an extension and you have no clue about java? :thinking:

1 Like

It usually ends up with 1+1=3

2 Likes

I mean i didn’t learn java nor extension, so i can’t tell :slight_smile:

Thank you all for trying to help me. kodular may not be the best, but certainly this community is the best

I will try it in the fastest time

Nice, but once the label is placed to the left or center, it seems that you can no longer place it on the right.

aix :sweat_smile:

Ah, I found it:

Why just 5? Anyway, nice work, @Boban.

1 Like

Just to inform you that you are NOT allowed to post/share direct links of extension, even tho this one is mine it’s still not allowed…

1 Like

#off-topic

I don’t know how you people say that you are not good at java and very next day or even same day come up with an extension. :thinking: It’s a mystery and really confusing :dizzy_face: for me.

I tried to learn java but soon left as it was not my cup-of-tea. And thus not to talk of extensions. :laughing:

2 Likes

I apologize

As for me, I moved the extension out aia

But there are many who can not

So please post the extension in a separate topic

Also, incorporate them if possible

Here you go com.baasapps.TextAlignment.aix (5.2 KB)

One for all…
bild

Or try this

5 Likes

Why not make a separate topic in extension category? :thinking:

4 Likes

gooooood :heart_eyes:

2 Likes

This can be fixed with:
VIEW.invalidate();
or
VIEW.requestLayout();
in the extension source code after the alignment was set.

2 Likes

this is good work