Relative @Erel's post: https://www.b4x.com/android/forum/threads/save-and-load-csbuilders.98257/
What I can't understand, why Erel writes "Using this class you can build CharSequences (the output of CSBuilder)".
Earlier, when I read https://www.b4x.com/android/forum/threads/charsequence-csbuilder-tutorial.76226/, I thought that CSBuilder = CharSequence.
But now I see that this is a wrong conclusion.
As I understood, CSBuild implements SpannableStringBuilder. SpannableStringBuilder holds different types, CharSequence is one of them only. Or I am wrong ?
Why I talk about this ...
Personally I want to use CSBuilder with EditText, where user can change a text and formatting.
It seems to me in this case it's necessary to divide SpannableStringBuilder per separate elements. I understand that in general it's not possible to serialize SpannableStringBuilder.
But, for example, CharSequence exactly is serializeable and maybe main spans also. What do you think about this approach ?
What I can't understand, why Erel writes "Using this class you can build CharSequences (the output of CSBuilder)".
Earlier, when I read https://www.b4x.com/android/forum/threads/charsequence-csbuilder-tutorial.76226/, I thought that CSBuilder = CharSequence.
But now I see that this is a wrong conclusion.
As I understood, CSBuild implements SpannableStringBuilder. SpannableStringBuilder holds different types, CharSequence is one of them only. Or I am wrong ?
Why I talk about this ...
Personally I want to use CSBuilder with EditText, where user can change a text and formatting.
It seems to me in this case it's necessary to divide SpannableStringBuilder per separate elements. I understand that in general it's not possible to serialize SpannableStringBuilder.
But, for example, CharSequence exactly is serializeable and maybe main spans also. What do you think about this approach ?