Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Edittext Rich Text Formatting

Is there any library or open source application demo that contains Rich Text Format Edittext component with WYSIWYG interface. I've heard that android-richtexteditor contained such functionality, but it's source code is no longer available.

If anyone have a link or source to the above please share it with me.

like image 241
Arshak92 Avatar asked Nov 04 '13 11:11

Arshak92


2 Answers

Here are two awesome libraries which helped me out. Both of them are implementation of WYSIWYG.

Android RTEditor: https://github.com/1gravity/Android-RTEditor

RichEditor-Android: https://github.com/wasabeef/richeditor-android

Their implementation code is also provided.

like image 82
sg_dev Avatar answered Sep 21 '22 13:09

sg_dev


No there is no library for this but you can do that with using following classes

1.HTML

2.SPANNABLE

3.ForegroundSpan

4.BackgroundSpan

5.AbsoluteSpan

1.http://developer.android.com/reference/android/text/Html.html

using this you can embedd direct html tag with android like bold ,itlic,underlince etc

2.http://developer.android.com/reference/android/text/Spannable.html (SpannableString ,SpannableStringBuilder, etc)

EDIT

for edit text bold,italic etc.. see some examples on below link

http://www.androidengineer.com/2010/08/easy-method-for-formatting-android.html

https://blog.stylingandroid.com/introduction-to-spans/

like image 33
Hardik Avatar answered Sep 22 '22 13:09

Hardik