B4A Library [B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View - Erel (first post)    May 21, 2023   (11 reactions) - v1.95 - new anchors feature.
1. Add anchors with the new "a" tag.
2. Jump to anchors with BBCodeView.ScrollToAnchor.
142185
See attached example. B4A Question [SOLVED] - Anchors seem to be ignored when using SetLayoutAnimated - Erel (first post)    Sep 22, 2020 The large images make the post less readable.
Anchors is a designer feature.
Create a separate layout and load it into this panel. No need to modify the layout at runtime. B4A Question Scrollview Height and inner layout height - klaus (first post)    Dec 10, 2018   (1 reaction) Yes, but this is not an anchor, this is 'fine tuning'.
As an example, you had in the DesignerSrcipt:
ScrollView1.SetLeftAndRight(0,100%x)
And you set the horizontal anchor of ScrollView1 to Both, which is the same !? Wish Anchors by percentage in Visual Designer - Lucas Siqueira    Jun 02, 2021   (15 reactions) Currently, the designer offers the anchors that already solve many problems when drawing a designer...
But it has a problem when you define several items in a row, depending on the width or height of the cell phone screen, one component ends up overlapping another...
This is because the anchors are B4A Tutorial [B4X] Anchors Demonstrated - Erel    Mar 01, 2016   (11 reactions) https://www.b4x.com/basic4android/images/SS-2016-02-29_15.19.52.png
https://www.b4x.com/basic4android/images/SS-2016-02-29_15.19.11.png
The anchors feature is simple to use and is very effective with implementing flexible layouts.
By default the views position is relative to the top left corner.
Bug? [B4J] Anchored Buttons Not Staying Anchored - LucaMs (first post)    Dec 03, 2021   (1 reaction) Erel:
"Note that the anchors effect ends right before the designer script starts."
https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/post-405609
In fact, if you comment the lines in the script, the anchoring works. B4A Tutorial Designer anchors - Video example - Erel    Jul 05, 2018   (9 reactions) This short video demonstrates how anchors can be used to build a flexible interface.
The small white arrows show the anchors settings.
lwoBRduEl4o
This layout will properly scale to any screen size.
Recommended video tutorial:
254439386 B4A Question My phone's Variants in Visual Designer - johnaaronrose (first post)    Mar 22, 2022 I've tried using anchors e.g. to anchor the bottom most view to the bottom (presumably having the downward pointing anchor on the view's properties selected?). However, if I want a reasoable gap to the next highest view what should I select for the vertical anchor (i.e. the downwards anchor or the u B4A Question script result not matched - Mostez (first post)    Dec 26, 2020 the anchor is horizontal left, vertical bottom, I cleaned the project, no change B4A Tutorial [B4X] BBCodeView Anchors Example - Erel    May 24, 2023   (5 reactions) 142262 142263 A small, cross platform, example of using the new anchors feature of BBCodeView. It reads a CSV file with information about US politicians. The data is used to populate a BBCodeView and B4XDialog+B4XSearchTemplate. The bbcode looks like: For Each pol As Politician In politicians Page: 1   2   3   4   5   6   7   Powered by ColBERT |