现在的位置: 首页 > 综合 > 正文

Android之输入法开发简单说明

2013年10月14日 ⁄ 综合 ⁄ 共 492字 ⁄ 字号 评论关闭

http://news.wangmeng.cn/detailNews/2616-android-development-of-a-simple-description-of-the-input

创建一个输入法,必须继承android.inputmethodservice.InputMethodService,它作为一个服务,监听所有EditText的事件。 



看一个AndroidManifest.xml文件的示例:

01.<manifest xmlns:android="http://schemas.android.com/apk/res/android"
02.package="com.example.fastinput">
03. 
04.<application android:label="@string/app_label">
05. 
06.<!--
Declares the input method service -->
07.<service android:name="FastInputIME"
08.android:label="@string/fast_input_label"

抱歉!评论已关闭.