- 2
- 0
- 约8.7千字
- 约 6页
- 2018-03-05 发布于河南
- 举报
编写android拼写检查程序
Spelling Checker Framework
In This Document
HYPERLINK /guide/topics/text/spell-checker-framework.html \l SpellCheckLifeCycle Spell Check Lifecycle
HYPERLINK /guide/topics/text/spell-checker-framework.html \l SpellCheckImplementation Implementing a Spell Checker Service
HYPERLINK /guide/topics/text/spell-checker-framework.html \l SpellCheckClient Implementing a Spell Checker Client
See also
HYPERLINK /resources/samples/SpellChecker/SampleSpellCheckerService/index.html Spell Checker Service sample app
HYPERLINK /resources/samples/SpellChecker/HelloSpellChecker/index.html Spell Checker Client sample app
The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. The framework is one of the Text Service APIs offered by the Android platform.
To use the framework in your app, you create a special type of Android service that generates a spelling checker session object. Based on text you provide, the session object returns spelling suggestions generated by the spelling checker.
Spell Checker Lifecycle
The following diagram shows the lifecycle of the spelling checker service:
Figure 1. The spelling checker service lifecycle.
To initiate spell checking, your app starts its implementation of the spelling checker service. Clients in your app, such as activities or individual UI elements, request a spelling checker session from the service, then use the session to get suggestions for text. As a client terminates its operation, it closes its spelling checker session. If necessary, your app can shut down the spelling checker service at any time.
Implementing a Spell Checker Service
To use the spelling checker framework in your app, add a spelling checker service component including the session object definition. You can also add to your app an optional activity that controls settings. You must also add an XML metadata file that describes the spelling checker service, and add the appr
您可能关注的文档
最近下载
- 船舶驾驶员实用英语口语.doc VIP
- 新能源汽车充电系统原理与检修 课件 第4章 交流慢充系统原理与检修.pptx VIP
- 隋朝的统一与灭亡部编版七年级历史下册.pptx VIP
- 人教版七年级历史下册第一课《隋朝的统一与灭亡》课件.pptx VIP
- VRAR技术在旅游体验中的沉浸感优化研究.docx VIP
- 新能源汽车控制系统及检修 课件 3-比亚迪秦EV新能源汽车动力电池管理系统.pdf
- 物理教学设计的比较研究——以“机械能守恒定律”教学为例.docx VIP
- 触觉记忆的叙事机制.docx VIP
- 儿童过敏性紫癜诊疗指南.docx VIP
- 知识图谱在通信知识库构建中的应用与智能辅助优化研究教学研究课题报告.docx
原创力文档

文档评论(0)