iOS Code Snippet TextView - Set Padding

This brings the left edge of the text to the left edge of the container:
B4X:
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:
Dim no As NativeObject = tv_TextView
no.SetField("textContainerInset",0)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…