百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

RichText

> 编程语言
开源

富文本编辑器,Android 平台下一个原生的富文本编辑器,功能丰富,集成简单,可以转换为 HTML,可以删除图片,具有回退功能。Android 平台,一个原生的富文本编辑器,功能丰富,集成简单,可以转换为 HTML,可以删除图片,具有回退功能。

198 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

富文本编辑器,Android 平台下一个原生的富文本编辑器,功能丰富,集成简单,可以转换为 HTML,可以删除图片,具有回退功能。Android 平台,一个原生的富文本编辑器,功能丰富,集成简单,可以转换为 HTML,可以删除图片,具有回退功能。

MyRichText

我的富文本编辑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图片如下

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言