Sub SetPadding(tf As TextField, PaddingLeft As Float, PaddingRight As Float)
Dim pnlLeft As B4XView = XUI.CreatePanel("")
pnlLeft .SetLayoutAnimated(0, 0, 0, PaddingLeft , tf.Height)
Dim pnlRight As B4XView = XUI.CreatePanel("")
pnlRight .SetLayoutAnimated(0, 0, 0, PaddingRight, tf.Height)
Dim no As NativeObject = tf
no.SetField("leftView", pnlLeft )
no.SetField("leftViewMode", 3)
no.SetField("rightView", pnlRight)
no.SetField("rightViewMode", 3)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.