Android的自定义键盘xml文件 [英] Android custom keyboard xml file

查看:739
本文介绍了Android的自定义键盘xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  创建自定义Android键盘布局

我开始开发自己的输入法,但我只能和XML文件。 Eclipse中似乎找不到键盘,也不行,也没有重点班。谁能告诉我怎么解决这个问题,或者如何code与Java的IME布局?如果这说明缺乏信息的下跌免费让我知道。总之,谢谢大家 首先它表明这一点: 注:此项目包含Java编译错误,这可能会导致渲染失败的自定义视图。第一个解决编制问题。

I started developing my own ime, but I'm stuck with the xml file. Eclipse seems to be unable to find the Keyboard, nor Row nor Key classes. Can anyone tell me how to solve this problem or how to code an ime layout with java? If this description lacks of informations fell free to let me know. Anyhow, thanks everyone at first it shows this: NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.

不设置所需layout_width属性:  (1)设置为WRAP_CONTENT  (2)设置为match_parent 不设置所需layout_height属性:  (1)设置为WRAP_CONTENT 如果我设置layout_widht属性它表明:

"" 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" if i set layout_widht attribute it shows:

注:此项目包含Java编译错误,这可能会导致渲染失败的自定义视图。第一个解决编制问题。

NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.

com.android.layoutlib.bridge.MockView不能转换为android.view.ViewGroup 异常详细信息记录在窗口>显示视图>错误日志 以下类不能被找到: - 键盘(修复构建路径,编辑XML) - 行(修正构建路径,编辑XML)

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)

推荐答案

有几个链接,你可以跟进有关这一点,在现场

There are a few links that you can follow up about this that are on site

设置自定义键盘的Andr​​oid应用程序

创建自定义Android键盘布局

如何制定一个软键盘为Android?

和一对夫妇场外开​​放源码程序

And a couple off site open source programs

HTTP://$c$c.google.com/p/hackerskeyboard/

HTTP://$c$c.google.com/p/softkeyboard/

<一个href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.0.1_r1/com/example/android/softkeyboard/SoftKeyboard.java">http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.0.1_r1/com/example/android/softkeyboard/SoftKeyboard.java

<一个href="http://www.java2s.com/$c$c/Android/User-Event/Exampleofwritinganinputmethodforasoftkeyboard.htm">http://www.java2s.com/$c$c/Android/User-Event/Exampleofwritinganinputmethodforasoftkeyboard.htm

标准机器人输入方法的概述

An overview of the standard android input method

<一个href="http://jayxie.com/mirrors/android-sdk/resources/articles/on-screen-inputs.html">http://jayxie.com/mirrors/android-sdk/resources/articles/on-screen-inputs.html

和教程

<一个href="http://android-developers.blogspot.co.uk/2009/04/creating-input-method.html">http://android-developers.blogspot.co.uk/2009/04/creating-input-method.html

有很多更在那里,我可以继续下去的页面 - !首先做你的研究

There are plenty more out there, I could go on for pages - do your research first!

这篇关于Android的自定义键盘xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆