LGS Member Licensed User Longtime User Nov 7, 2021 #1 Hello everyone. in B4A I use padding like this B4A: Private txtPassword As B4XFloatTextField Dim et As EditText = txtPassword.TextField et.Padding = Array As Int (5dip, 0dip, 30dip, 0dip) txtPassword.Update I need to use paddin in B4J Any suggestion? Thanks in advance
Hello everyone. in B4A I use padding like this B4A: Private txtPassword As B4XFloatTextField Dim et As EditText = txtPassword.TextField et.Padding = Array As Int (5dip, 0dip, 30dip, 0dip) txtPassword.Update I need to use paddin in B4J Any suggestion? Thanks in advance
MarcoRome Expert Licensed User Longtime User Nov 7, 2021 #2 B4X: B4XFloatTextField1.TextField.As(EditText).Padding = Array As Int (0dip, 0dip, 60dip, 0dip) Add: Sorry, B4J havent EditText like in B4A. Ignore my answer Last edited: Nov 7, 2021 Upvote 0
B4X: B4XFloatTextField1.TextField.As(EditText).Padding = Array As Int (0dip, 0dip, 60dip, 0dip) Add: Sorry, B4J havent EditText like in B4A. Ignore my answer
LGS Member Licensed User Longtime User Nov 7, 2021 #3 Hello Mr. MarcoRome Thanks for the suggestion Now I get the following error (image) Code: txtPassword.TextField.As(EditText).Padding = Array As Int (0dip, 0dip, 60dip, 0dip) Attachments Error.PNG 5.2 KB · Views: 138 Upvote 0
Hello Mr. MarcoRome Thanks for the suggestion Now I get the following error (image) Code: txtPassword.TextField.As(EditText).Padding = Array As Int (0dip, 0dip, 60dip, 0dip)
MarcoRome Expert Licensed User Longtime User Nov 7, 2021 #4 Try add this to the Extra CSS field ( Design ): CSS: -fx-padding: 15 0 0 30; Upvote 0
LGS Member Licensed User Longtime User Nov 7, 2021 #5 I tried it, but it has no effect CCS: -fx-padding: 15 0 0 30; and CCS: -fx-padding: 15px 0px 0px 30px; Attachments Error2.PNG 2.4 KB · Views: 149 Padding.zip 2.9 KB · Views: 118 Upvote 0
I tried it, but it has no effect CCS: -fx-padding: 15 0 0 30; and CCS: -fx-padding: 15px 0px 0px 30px;
TILogistic Expert Licensed User Longtime User Nov 7, 2021 #6 ? Use CSSUtils B4X: #If B4A SearchText.TextField.As(EditText).Padding = Array As Int (0dip, 0dip, 60dip, 0dip) #Else CSSUtils.SetStyleProperty(SearchText.TextField.As(TextField), "-fx-padding", "0 60 0 0") #End If Upvote 0
? Use CSSUtils B4X: #If B4A SearchText.TextField.As(EditText).Padding = Array As Int (0dip, 0dip, 60dip, 0dip) #Else CSSUtils.SetStyleProperty(SearchText.TextField.As(TextField), "-fx-padding", "0 60 0 0") #End If
LGS Member Licensed User Longtime User Nov 7, 2021 #7 Thank you very much for the contribution @oparra This works perfect for me Thankful for everyone's time and support Upvote 0
Thank you very much for the contribution @oparra This works perfect for me Thankful for everyone's time and support