May 24, 2020 Replies: 2 This example uses PreoptimizedCLV to create a list of BBCodeViews. In most cases it will be simpler to create a single BBCodeView, as BBCodeView is scrollable. However there might be some use cases where it makes sense to put the BBCodeViews in a list. It depends on BCTextEngine v1.77+ (https://www.b4x.com/android/forum/t...ne-bbcode-parser-rich-text-view.106207/page-1) And PreoptimizedCLV: https://www.b4x.com/android/forum/threads/115289/#content Notes - As the BBCodeViews are reused it will not be trivial to add inner views. - In B4J and B4i, the list width is expected to be kept constant. - The list is a bit jumpy in debug mode. Should be smooth in release mode. Attachments BBCodeCLV-B4A.zip BBCodeCLV-B4A.zip 24.1 KB · Views: 1,226 BBCodeCLV-B4i.zip BBCodeCLV-B4i.zip 184.8 KB · Views: 1,018 BBCodeCLV-B4J.zip BBCodeCLV-B4J.zip 17 KB · Views: 1,015 Last edited: May 27, 2020 Click to expand...
This example uses PreoptimizedCLV to create a list of BBCodeViews. In most cases it will be simpler to create a single BBCodeView, as BBCodeView is scrollable. However there might be some use cases where it makes sense to put the BBCodeViews in a list. It depends on BCTextEngine v1.77+ (https://www.b4x.com/android/forum/t...ne-bbcode-parser-rich-text-view.106207/page-1) And PreoptimizedCLV: https://www.b4x.com/android/forum/threads/115289/#content Notes - As the BBCodeViews are reused it will not be trivial to add inner views. - In B4J and B4i, the list width is expected to be kept constant. - The list is a bit jumpy in debug mode. Should be smooth in release mode.
A AymanA Active Member Licensed User May 25, 2020 #2 Thanks Erel, I am just wondering if the example is missing a file for the B4A example? It complaints for BBCodeCLV-B4A\B4A Samples\Objects\b4xlibs\Files\b4xinputtemplate.bal'.
Thanks Erel, I am just wondering if the example is missing a file for the B4A example? It complaints for BBCodeCLV-B4A\B4A Samples\Objects\b4xlibs\Files\b4xinputtemplate.bal'.
Erel B4X founder Staff member Licensed User Longtime User May 25, 2020 #3 It is related to bug in B4A v9.80. Add a reference to XUI Views library and it will work.