RichText

Project Url: oyd5201/RichText
Introduction: 富文本编辑器,Android 平台下一个原生的富文本编辑器,功能丰富,集成简单,可以转成 html,可以删除图片,回退功能。Android platform, a native rich text editor, rich in functions, simple integration, can be converted to HTML, can delete pictures, rollback function.
More: Author   ReportBugs   
Tags:

我的富文本编辑 module

我写的这个 module 是对 richeditor-android 进行了封装,把常用的集成进来,并对页面布局进行了优化, 你们要用的话直接下载这个项目,进行导入即可使用。 集成的内容如下

字体加粗、字体下划线、斜体、字体颜色修改,字体标题大小变换、以及插入图片、生成 html,结合 webview,以及带有引用功能。

如果功能觉得不够多里面 MainActivity 里面的类集成了更多,我现在只是隐藏了,需要更多富文本请看源码

把 AndroidManifest.xml 文件里的启动类改成 MainActivity,现在启动类是 MainActivityTest

注意事项

这个 webview 编辑器由于需要获取焦点,比如改变字体颜色啥的,还有字体变粗,而我用的 popwindow 也是要获取焦点的,然而这不是重点,

重点是唤醒的键盘也是会获取焦点,而且优先级高于前面两者,所以当键盘隐藏的时候是编辑器里面的有些功能就失效了,所以就得在 AndroidManifest.xml

里面加属性让键盘不主动隐藏

觉得满意的话,可否留下你们的小心心^_^

The module I wrote was encapsulation of richeditor-android, bringing in common integration and optimizing page layout.

You need to download the project directly and import it.

The content of the integration is as follows

Font thickening, font underline, italic, font color modification, font size change, and inserting pictures, generating HTML, combining WebView, and with reference function.

-

If the function doesn't feel enough, the class in MainActivity is integrated more. I'm just hiding now. I need more rich text. Please look at the source code.

Change the startup class in the AndroidManifest.xml file to MainActivity, and now the startup class is MainActivityTest.

-

The point is that the wake-up keyboard also gets the focus, and the priority is higher than the previous two, so when the keyboard is hidden, some of the functions in the editor fail, so it has to be in Android Manifest. xml.

-

Add attributes inside so that the keyboard does not take the initiative to hide.

-

If you feel satisfied, can you leave your little heart?

demo 图片如下

效果图 1 效果图 2 效果图 3

Support Me
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea