Android Question TextField with very small fontsize

GMan

Well-Known Member
Licensed User
Longtime User
I have several textfields very near to each other and i set the fontsize to 6 which is not well shown.

Is it possible to set the textfiled properties to "without" the padding, so padding 0 ?
 

GMan

Well-Known Member
Licensed User
Longtime User
What is a 'textfield'. Do you mean a Label or an EditText? Both of these have a Padding property.
I meant EditText :rolleyes:
I saw that right after i posted the text.
Thought i deleted it, but obvisiously not.o_O
 
Upvote 0

watesoft

Active Member
Licensed User
Longtime User
I have several textfields very near to each other and i set the fontsize to 6 which is not well shown.

Is it possible to set the textfiled properties to "without" the padding, so padding 0 ?
B4X:
Activity.LoadLayout("123")
 
    EditText1.TextSize=46
    EditText2.TextSize=22
    EditText1.Padding=Array As Int(0, 0, 0, -10)   'Array As Int(Left, Top, Right, Bottom)
    EditText2.Padding=Array As Int(0, 0, 0,-4)

    Label1.TextSize=36
    Label1.Padding=Array As Int(0, -17, 0, 0)

You may need to constantly adjust the Top or Bottom values depending on the the Testsize to know where it fits.

Snipaste_2023-04-14_10-16-15.png
 
Last edited:
Upvote 0
Top