use*_*101 0 xml eclipse keyboard layout android
可能重复:
创建自定义Android键盘布局
我开始开发自己的ime,但我坚持使用xml文件.Eclipse似乎无法找到Keyboard,也没有找到Row和Key类.任何人都可以告诉我如何解决这个问题或如何使用java编码ime布局?如果这个描述缺乏信息,请随意告诉我.无论如何,首先要感谢大家,它表明了这一点:
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
"" does not set the required layout_width attribute: (1) Set to "wrap_content" (2) Set to "match_parent" "" does not set the required layout_height attribute: (1) Set to "wrap_content"
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- Keyboard (Fix Build Path, Edit XML)
- Row (Fix Build Path, Edit XML)
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
"" does not set the required layout_width attribute: (1) Set to "wrap_content" (2) Set to "match_parent" "" does not set the required layout_height attribute: (1) Set to "wrap_content" 如果我设置layout_widht属性,它显示:
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup Exception details are logged in Window > Show View > Error Log The following classes could not be found: - Keyboard (Fix Build Path, Edit XML) - Row (Fix Build Path, Edit XML)
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
"" does not set the required layout_width attribute:
(1) Set to "wrap_content"
(2) Set to "match_parent"
"" does not set the required layout_height attribute:
(1) Set to "wrap_content"
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup Exception details are logged in Window > Show View > Error Log The following classes could not be found: - Keyboard (Fix Build Path, Edit XML) - Row (Fix Build Path, Edit XML)
您可以在网站上找到关于此的一些链接
还有一些非现场开源程序
http://code.google.com/p/hackerskeyboard/
http://code.google.com/p/softkeyboard/
http://www.java2s.com/Code/Android/User-Event/Exampleofwritinganinputmethodforasoftkeyboard.htm
标准android输入法的概述
http://jayxie.com/mirrors/android-sdk/resources/articles/on-screen-inputs.html
还有一个教程
http://android-developers.blogspot.co.uk/2009/04/creating-input-method.html
还有更多的东西,我可以继续寻找页面 - 先做你的研究!
| 归档时间: |
|
| 查看次数: |
19611 次 |
| 最近记录: |