2012年11月25日

SoftKeyboard详解

摘要: 1. public void onCreate()Main initialization of the input method component. Be sure to call to super class.Overrides: onCreate() in InputMethodService2. public void onInitializeInterface()This is the point where you can do all of your UI initialization. It is called after creation and any configurat 阅读全文

posted @ 2012-11-25 21:32 勤修 阅读(913) 评论(0) 推荐(0) 编辑

KeyboardView.OnKeyboardActionListener详解

摘要: android.inputmethodservice.KeyboardView.OnKeyboardActionListener接口OnKeyboardActionListener在KeyboardView中定义,用于监听虚拟键盘事件。在接口OnKeyboardActionListener中声明8个抽象方法1. void onPress(int primaryCode)Called when the user presses a key. This is sent before the onKey is called. For keys that repeat, this is only ca 阅读全文

posted @ 2012-11-25 17:27 勤修 阅读(5571) 评论(0) 推荐(0) 编辑

InputMethodService详解

摘要: android.inputmethodservice.InputMethodServiceInputMethodService provides a standard implementation of an InputMethod, which final implementations can derive from(起源于) and customize(定制). See the base class AbstractInputMethodService and the InputMethod interface for more information on the basics of 阅读全文

posted @ 2012-11-25 17:12 勤修 阅读(3036) 评论(0) 推荐(0) 编辑

SoftKeyboard示例之CandidateView详解

摘要: 工程的包名:com.example.android.softkeyboard.CandidateView.CandidateView(Context context)Construct a CandidateView for showing suggested words for completion.android.view.GestureDetector.GestureDetector(OnGestureListener listener)Deprecated. Use GestureDetector(android.content.Context, android.view.Gestur 阅读全文

posted @ 2012-11-25 14:59 勤修 阅读(1730) 评论(0) 推荐(0) 编辑

导航