我为我的应用程序创建了一个自定义键盘.你可以在下面看到键盘的代码.我在xml查看器中收到错误类似的问题已被问到 Android - 不支持的服务:音频 但没有人回复.
我的自定义键盘的代码
public class KeyboardViewExtend extends KeyboardView implements KeyboardView.OnKeyboardActionListener
{
private SymjaBase _parent = null;
private Keyboard _myKeyboard = null;
public KeyboardViewExtend(Context c, AttributeSet atts, int defStyle) {
super(c, atts, defStyle);
// Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
if (!isInEditMode()) {
_parent = (SymjaBase)c;
}
init(c);
}
public KeyboardViewExtend(Context c, AttributeSet atts) {
super(c, atts);
// Tip: Use View.isInEditMode() in your custom views to skip code when shown …Run Code Online (Sandbox Code Playgroud)