RichMobileText is a module for Android apps which exposes RichEditText and RichTextView to client.
- Enable HTML Rendering Support
- Enable MarkDown Language Support
- Transformation from MarkDown to HTML
- Default Emojis Support (Encoding & Decoding)
- Custom Emojis Support (Encoding & Decoding)
- Support to Load Dynamic Emojis From Server End via json file named (CustomEmojiIcons.json)
- Dynamic Scrolling and Pagination Support
- Changeable Font Size (by Default: 14sp, 20sp, 32sp)
Following Features are exposed to client app:
- customEmojiEnabled
- textSizeChangeable
- htmlEnabled
- markdownEnabled
Following the 2 different ways of incorprating this library into your project. ###For non-maven / non-gradle projects: Import this project as a library project into your development studio. Add this project as a library in your current project.
Add the following dependency in the dependencies tag of pom.xml file.
<dependency>
<groupId>rich.mobile.text</groupId>
<artifactId>android</artifactId>
<version>0.0.13</version>
<type>aar</type>
</dependency>
Add the following code snippet in build.gradle file.
compile 'rich.mobile.text:android:0.0.1'
editText = (RichEditText) findViewById(R.id.edit);
editText.textSizeChangeable(true);
editText.customEmojiEnabled(true);
editText.setChangedTextSize(R.dimen.changeable_font_size_default);
text = (RichTextView) findViewById(R.id.text);
text.markdownEnabled(true);
text1 = (RichTextView) findViewById(R.id.text1);
text1.htmlEnabled(true);
String str = "## This is Markdown \n This is Markdown :happy \\uD83D\\uDE01";
String str1 = "<b>This is Html</b><br>This is Html :alien \\uD83D\\uDE01";
text.setText(str);
text1.setText(str1);
Intent intent = new Intent(this, SyncEmojis.class);
intent.putExtra("url","server base url");
startService(intent);
<dimen name="changeable_font_size_default">14sp</dimen>
<dimen name="changeable_font_size_medium">20sp</dimen>
<dimen name="changeable_font_size_large">32sp</dimen>
<string name="label">Rich Mobile Text</string>
R.drawable.ic_insert_emoji