InputMethod剖析
来源:互联网 发布:安卓网络配置文件路径 编辑:程序博客网 时间:2024/06/15 20:39
1,inputMethodSession,view和输入法建立session会话通道,
2,输入法是如何与View进行通信的?
每一个App进程在执行wm.addView()的时候,在其内部会调用ViewrootImpl,并对其进行初始化,ViewrootImpl的构造函数中,会初始化WindowSession,并同时初始化一个IMM单例,IMM类中有一个成员变量mServedInputConnectionWrapper,该变量会被IMMS传递给IMS,当用户输入文字时,输入法便使用该变量,并调用其commitText()方法,通过binder进程间通信,调用IInputConnectionWrapper对应的commitText()方法,将文字传递给对应的View。
3,WMS
updateFocusedWindowLocked 运行在其他线程,使用mH(Handler)发送消息到主线程,处理UI相关的操作,ViewRootImpl的windowFocusChanged方法,运行在其他线程(Binder线程),通过ViewRootImpl的mHandler 和其主线程进行交互
阅读全文
0 0
- InputMethod剖析
- InputMethod Framework
- Android InputMethod 教程
- Java InputMethod 实现
- android.view.inputmethod
- how to debug inputmethod
- 【Android】【InputMethod】隐藏输入法
- mtk font inputmethod mtk输入法
- Android InputMethod 源码分析,显示输入法流程
- Android 中文api (81)——InputMethod [输入法]
- Qt 底层输入的截获InputMethod 方法的简单应用
- InputMethod窗口、wallpaper窗口管理关键函数分析
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- android.os.NetworkOnMainThreadException,Failed to find provider info for com.android.inputmethod.lat
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
- 20171010联通流量悬浮球导致的浏览器功耗偏大
- 结构化设计向导(Architecture Wizard)和IP核生成工具(Core Generator)
- 无符号数值和有符号数值转化
- java 时间格式转换工具包
- 记录自己学习的日子day-01
- InputMethod剖析
- MariaDB日志功能
- 最常用的15大Eclipse开发快捷键技巧
- VMware虚拟机中安装CentOS 7(图文教程)
- 使用数据库对象的CRUD
- Unity可持久化数据PlayerPrefs扩展SetBool以及GetBool
- php输出流
- 前端框架模式的变迁
- TextArea相关