B4A Library RTFeditor Version 2021

Due to the much reactions I got for Version 1 and to respect the proposals and comments of the community I desired to overhaul and redesign the custom view. Thank you for all replies.
Again this custom view is a small rich text word processor to be used as a view/control in your project

1619601882146.png


Version: 3 ( 2021/04/27)
- fixed scroll up/down
- changed manual
- redesign toolbar, horizontal scrolling
- editor auto. scroll top/bottom added
- added new custom properties
- added new format buttons

Tested on Huawei p20pro, Android 8.

Format overview (New):
  • Bold, Italic, Strikethrough, Underline
  • Superscript, Subscript
  • 6 Predefined Header Text size
  • Align left, center, right
  • Set Text(part) color with Color Dialog
  • Set Text(part) Background color (highlight) with Color Dialog
  • Build ordered (numbers), unordered (bulletts) List
  • indent, outdent, blockquote
  • Insert checkbox
  • Insert Image (from Device) for example from Gallery by dialog.
  • undo/redo last format
  • editor text zoom in/out
Code function overview:
  • Use RTFEditor view in the Designer.
  • Predefine Height of scrollable Editor Area (activate vertical scroll).
  • Editor auto scroll to top and bottom position .
  • Enable/Disable Editor (enabled=false to use it as viewer)
  • Show/Hide Toolbar
  • Horizonal scrolling toolbar if view width is to small.
  • Format buttons spreaded over 5 Sub-Toolbars with list like scrolling.
  • Insert formatted/unformatted Text (HTML) as default value.
  • Get formatted (HTML) text from Editor for example to store it into a database
  • Set formatted (HTML) text into the Editor for example retriven from database.
  • Get raw text from editor without format codes.
  • Big collection of custom properties to set or get the value. See description in the Manual.
  • Collection of custom properties in the designer.
To get information about installation and usage for developer and user please look into the Manual. Please download it from this location Google Drive, RTFeditorManualV3.zip.

To have a look into the code please use the demo project it includes RTFeditor as a class.

Updates are published by editing this post. If you use it I recommend to bookmark this post in your profile.

Please respect that since Version 2 of this view it is not free for commercial use! Find further copyright information in the manual.
 

Attachments

  • RTFeditorLib.zip
    20 KB · Views: 53
  • RTFeditorRessources.zip
    5.7 KB · Views: 56
  • RTFEditorV3DEMO.zip
    22.7 KB · Views: 50
Last edited:

Almora

Active Member
Licensed User
hi..
I tested it, but the text color is not visible. and does not scroll through long text.
 

Attachments

  • SharedScreenshot.jpg
    SharedScreenshot.jpg
    15.3 KB · Views: 49

tsteward

Well-Known Member
Licensed User
Unfortunately Almora is correct text is not visible again.
Opening a layout in the designer with rtfeditor on it give this message
 

Attachments

  • Screenshot 2021-04-11 072921.jpg
    Screenshot 2021-04-11 072921.jpg
    7.7 KB · Views: 45

Guenter Becker

Active Member
Licensed User
Unfortunately Almora is correct text is not visible again.
Opening a layout in the designer with rtfeditor on it give this message

Thank you for your reply. Very fine that you help me testing because it's very hard to test all functionalty in all possible combinations. Special Thank you.

Textcolor: you have to select the Text(part) by doubleclicking on it if selected click on the text color button and choose the color.

Scrolling works by me! To aviod of problems I deleted the lib file and attached it again with a new one from today.
 

Guenter Becker

Active Member
Licensed User
hi..
I tested it, but the text color is not visible. and does not scroll through long text.

Thank you! Please see my last reply!May help you. Recommend download last lib I substituted.
 

Almora

Active Member
Licensed User
Scrolling works by me! To aviod of problems I deleted the lib file and attached it again with a new one from today.

Works on scrolling emulator. (android7)
but it doesn't work on the real device. (android11 note20)
 

tsteward

Well-Known Member
Licensed User
Any chance to can put up a working project. I still can't see text :(
 

Guenter Becker

Active Member
Licensed User
Hey guys,
you are right, tehere are some unexpected reaction comming from the smmrichtext core control. I am working on it please give me some time. Having the solutions I will place a note and the updates.
 

Guenter Becker

Active Member
Licensed User
Heallo comming back for short,
all present development is on hold. I'm ill and hav to stay in bed. The good thing found problem of no scrolling and fixed it. Giving livesign after health is back. Sorry.
 

Guenter Becker

Active Member
Licensed User
Hello today,
back to the board and devolopement. I solved some problems and published Version 2.3, see main post.
Notice: There might be problems and some functional registrations left. The manual describes the ways to go tested by me. Other ways may also be ok. I tried to contact the devloper of the core SMMRichTextEditor to fight/change of the known limitation sbut here was no reply.
 

tsteward

Well-Known Member
Licensed User
So yes you can scroll to an extent.
After a certain number of lines of text have been added you can no longer scroll back to the top
I have made the editor only half screen height to the keyboard doesn't hide it.

I assume in properties "Editor Panel height" if a scrolling panel maybe?
 

Guenter Becker

Active Member
Licensed User
Hey ist awfull, will check it on weekend, back on monday.
 
Top