免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2075 | 回复: 0
打印 上一主题 下一主题

android.inputmethodservice 包 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-02 17:04 |只看该作者 |倒序浏览
android.inputmethodservice 包




1.服务端:framework/base/core/java/android/inputmethodservice/
  包内是写输入法模块的基础类。
  这些APIs 不是普通应用程序使用的,它们是专门写输入法组件的一个框架。
  输入法模块的实现都是从InputMethodService 派生的。
   
2.Interfaces
(1)KeyboardView.OnKeyboardActionListener
   虚拟键盘事件监听器
 
3.Classes:
(1)AbstractInputMethodService
   抽象类:提供输入法模块的基础类
(2)AbstractInputMethodService.AbstractInputMethodImpl
   内部抽象类,实现了InputMethod接口,InputMethodService类的内部类InputMethodImpl继承自它
(3)AbstractInputMethodService.AbstractInputMethodSessionImpl
   内部抽象类,实现了InputMethodSession接口,InputMethodService类的内部类InputMethodSessionImpl继承自它
(4)ExtractEditText
   专门的EditText,它用来显示和 跟全屏输入法的extracted text交互
(5)InputMethodService
   提供了一个输入法的标准实现,实现一个输入法要从它继承
(6)InputMethodService.InputMethodImpl
   抽象类AbstractInputMethodImpl的具体实现,它提供了一个输入法的所有标准行为
(7)InputMethodService.InputMethodSessionImpl
   抽象类AbstractInputMethodSessionImpl的具体实现,它提供了一个输入法会话的标准行为
(InputMethodService.Insets
   信息:关于在哪儿显示输入法UI感兴趣的部分
(9)Keyboard
   装载一个键盘的XML布局,存储按键属性
(10)Keyboard.Key
    一个类:描述了键盘上一个简单按键的位置和字符
(11)Keyboard.Row
    一个容器,装载键盘按键
(12)KeyboardView
    画虚拟键盘的一个视图

编辑器加载中
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP