William Lancee Well-Known Member Licensed User Longtime User Sep 2, 2019 #1 B4X: BBCV.mBase.SetLayoutAnimated(0, 0, 0, Activity.width, Activity.Height) TextEngine.Initialize(Activity) BBCV.Text = $"[Alignment=Center][TextSize=40][Color=Black][b]This is a centered Title[/b][/Color][/TextSize][/Alignment]"$ This results in a truncated text. I am not sure where to put this information. Attachments problem.png 3.1 KB · Views: 115
B4X: BBCV.mBase.SetLayoutAnimated(0, 0, 0, Activity.width, Activity.Height) TextEngine.Initialize(Activity) BBCV.Text = $"[Alignment=Center][TextSize=40][Color=Black][b]This is a centered Title[/b][/Color][/TextSize][/Alignment]"$ This results in a truncated text. I am not sure where to put this information.
Erel B4X founder Staff member Licensed User Longtime User Sep 2, 2019 #2 William Lancee said: BBCV.mBase.SetLayoutAnimated(0, 0, 0, Activity.width, Activity.Height) Click to expand... This is not needed. Anchor the view in the designer. Please upload a small project with this text. Upvote 0
William Lancee said: BBCV.mBase.SetLayoutAnimated(0, 0, 0, Activity.width, Activity.Height) Click to expand... This is not needed. Anchor the view in the designer. Please upload a small project with this text.
William Lancee Well-Known Member Licensed User Longtime User Sep 2, 2019 #3 You are right again. That line in combination with the wrong anchors (left, top) caused my problem. Centered anchors without that line solved it. Edit: That in combination with a landscape orientation where activity width>height. Last edited: Sep 2, 2019 Upvote 0
You are right again. That line in combination with the wrong anchors (left, top) caused my problem. Centered anchors without that line solved it. Edit: That in combination with a landscape orientation where activity width>height.