Jul 19, 2022 How to lose margin/padding in UITextView I have a UITextView in my iOS application, which displays a large amount of text. I am then paging this text by using the offset margin parameter of the UITextView. My problem is that the padding o... stackoverflow.com 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) Click to expand...
How to lose margin/padding in UITextView I have a UITextView in my iOS application, which displays a large amount of text. I am then paging this text by using the offset margin parameter of the UITextView. My problem is that the padding o... stackoverflow.com 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)