GMan Well-Known Member Licensed User Longtime User Apr 13, 2023 #1 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 ?
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 ?
agraham Expert Licensed User Longtime User Apr 13, 2023 #2 What is a 'textfield'. Do you mean a Label or an EditText? Both of these have a Padding property. Upvote 0
GMan Well-Known Member Licensed User Longtime User Apr 13, 2023 #3 agraham said: What is a 'textfield'. Do you mean a Label or an EditText? Both of these have a Padding property. Click to expand... I meant EditText I saw that right after i posted the text. Thought i deleted it, but obvisiously not. Upvote 0
agraham said: What is a 'textfield'. Do you mean a Label or an EditText? Both of these have a Padding property. Click to expand... I meant EditText I saw that right after i posted the text. Thought i deleted it, but obvisiously not.
watesoft Active Member Licensed User Longtime User Apr 14, 2023 #4 GMan said: 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 ? Click to expand... 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. Last edited: Apr 14, 2023 Upvote 0
GMan said: 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 ? Click to expand... 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.
agraham Expert Licensed User Longtime User Apr 14, 2023 #5 watesoft said: You may need to constantly adjust the Top or Bottom values depending on the the Testsize to know where it fits. Click to expand... Setting the Gravity to Gravity.CENTER_VERTICAL should help with this. Upvote 0
watesoft said: You may need to constantly adjust the Top or Bottom values depending on the the Testsize to know where it fits. Click to expand... Setting the Gravity to Gravity.CENTER_VERTICAL should help with this.