可能重复:
创建自定义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 …