SafeDK
Sign upAdd Your SDK

Letting Users Make Text Pretty

Provides RichEditText, an extended version of Google's EditText, offering formatted text entry (bold, italics, etc.)

Android's EditText widget supports formatted (a.k.a., "rich text") editing. It just lacks any way for the user to supply formatting, and it does not provide much in the way of convenience methods for a developer to, say, tie in some sort of toolbar to allow users to format selections.

That's where RichEditText comes in. 

 RichEditText is a drop-in replacement for EditText that:  

  • Provides an action mode on Android 4.0+ that allows users to format selected pieces of text 
  • Provides convenience methods to allow developers to trigger formatting for selected text via other means 

This library also contains a series of utility classes for working with rich text. In particular, it has code to convert a Spanned to and from XHTML, as an alternative to the toHtml() and fromHtml() methods on Android's Html class.

Main Features

Supported Effects:

  • BOLD 
  • ITALIC 
  • UNDERLINE 
  • STRIKETHROUGH 
  • SUPERSCRIPT 
  • SUBSCRIPT 
  • TYPEFACE 
  • ABSOLUTE_SIZE 
  • RELATIVE_SIZE 
  • URL 
  • BACKGROUND (color) 
  • FOREGROUND (color)

Known Limitations: 

  • This widget has not been tested with the AppCompat action bar backport. Most likely, it will not work well. AppCompat support is planned, at least to get a Toolbar implementation going. Tint support will be added as well, if and only if the process for doing so is documented. 
  • The demo app uses a ColorMixerActivity from the CWAC-ColorMixer library for its implementation of ColorPicker. While easy to integrate, this approach has one major flaw: the color picker remains in the foreground after a configuration change. Since the demo activity is recreated, so its its RichEditText widget, and any existing selection (or ColorPickerOperation) is lost. What the demo app should do is dismiss the color picker on a configuration change, since the chosen color will not be applied anyway.

SDK for Android

  • Added preliminary support for bullets, added XHTML conversion classes
  • Added support for size, color, and URL effects

Documentation

Example A

Selected Apps that use this SDK

1943rhskk5vtwtfqwcr tsrax1bw6d7j7crkyox3ggria0dy4eja04laxuh2wbboqzowveutcxnr4rw5

Email - Organized by Alto

Ste4et xv7niolyohc6g3fow4voc 9jb1xyvhlgauxkfsu6ipivwgn3x8yd8vi6iqooyo4sww14 uttr

OLX.ba

Ww4r6dbojnvmtpz dtiglzzd8yhnzwymlg8nyll0ehi hr0z2tggea3ov5bevcc0xzmoevq9iovi6fai

Memrise: Learn Languages Free

Similar SDKs

MORE

Reviews

Rate Now
0
0
0
0
0
0

Start a new discussion about CWAC RichEditText

×
0
/1000

More from this Developer

MORE
Login