在 Android 中创建一个简单的文本编辑器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11982994/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Create a simple text editor in Android
提问by Saifuddin Sarker
I want to create a simple text editor in Android which will open a text file, display the content of that file. The user will be able to cut, copy, paste and then save it. Any suggestion or library reference?
我想在 Android 中创建一个简单的文本编辑器,它将打开一个文本文件,显示该文件的内容。用户将能够剪切、复制、粘贴然后保存它。任何建议或图书馆参考?
回答by Chirag
Look at this githubproject source code.
看这个github项目源码。
SUMMARY
概括
Simple notepad app to open, edit and save text files to and from the SD card.
简单的记事本应用程序,用于在 SD 卡中打开、编辑和保存文本文件。
** Some features -- open email attachments -- change font size, type and color -- delete/rename in file browser -- email as text or attachment -- Search using "search" button
** 某些功能 -- 打开电子邮件附件 -- 更改字体大小、类型和颜色 -- 在文件浏览器中删除/重命名 -- 作为文本或附件发送电子邮件 -- 使用“搜索”按钮搜索
Another Project Source Code. Android Ted
另一个项目源代码。安卓泰德
You can create new text file, open existing files and of course save them. You can also display line numbers and open recent files. Now you can also search for text inside the openned file.
您可以创建新的文本文件,打开现有文件,当然也可以保存它们。您还可以显示行号并打开最近的文件。现在您还可以在打开的文件中搜索文本。
Another Project Source Code- Qute Text Editor for Android
另一个项目源代码-适用于 Android 的 Qute 文本编辑器