文章标题

安卓T9实体键盘输入法开发过程

InputMethodService

自定义Service继承InputMethodSerivce
配置文件如下 ,该应用即被声明为输入法,系统也就知道了。

 <service
     android:name=".IMEService"
     android:label="@string/app_name"
     android:permission="android.permission.BIND_INPUT_METHOD">
     <intent-filter android:priority="1">
         <action android:name="android.view.InputMethod" />
     </intent-filter>
     <meta-data
         android:name="android.view.im"
         android:resource="@xml/method" />
 </service>

参考:http://www.cnblogs.com/carlo/p/4737523.html
参考:http://itindex.net/detail/53090-android-%E8%BE%93%E5%85%A5%E6%B3%95
参考:https://m.baidu.com/mip/c/m.cr173.com/mipw/19795.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值