Android Tutorial [B4X] xCLV + PreoptimizedCLV + BCTextEngine

1590306481550.png


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
    24.1 KB · Views: 779
  • BBCodeCLV-B4i.zip
    184.8 KB · Views: 532
  • BBCodeCLV-B4J.zip
    17 KB · Views: 562
Last edited:

AymanA

Active Member
Licensed User
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'.
 
Top