Example of implementing a chat layout. It is based on xCustomListView. The text is created with a hidden BBCodeView (BCTextEngine) and the bubble is drawn with BitmapCreator. Extracting the image from BBCodeView is not trivial. See the code. The code is implemented in the Chat class which is...
www.b4x.com
I tried to change the typeface but I couldn't find any way to do that
so if anyone can show me how to write Arabic or Persian language on this example, please show me the way
It shouldn't be too difficult to use a regular Label with CSBuilder. You can use B4XView.Snapshot to get a bitmap. Measuring will require some work but it is possible.