B4J Question My text is too long for the label.

zed

Well-Known Member
Licensed User
My text is too long for the label. It does not matter.
The problem is like this abcdefgh....
I wish it was like that ...ghijklmnop.
An idea?
 

aeric

Expert
Licensed User
Longtime User
Try change Ellipsize to START.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User

Also make sure Single Line is checked.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I found Ellipsize in B4A but not in B4J
opss... I thought I was reading B4A.

Use CSS.
B4X:
-fx-text-overrun: leading-ellipsis;
 
Reactions: zed
Upvote 1
Solution

Cableguy

Expert
Licensed User
Longtime User
You can also set the text to be aligment center right
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…