iOS Code Snippet TextView - Set Padding

This brings the left edge of the text to the left edge of the container:
B4X: Copy
Dim no As NativeObject = tv_TextView
no.RunMethod("textContainer",Null).SetField("lineFragmentPadding",0)
This causes the top of the text to align with the top of the container:
B4X: Copy
Dim no As NativeObject = tv_TextView
no.SetField("textContainerInset",0)
 
Back
Top