相关疑难解决方法(0)

Android自定义键盘,无法实例化以下类:

我为我的应用程序创建了一个自定义键盘.你可以在下面看到键盘的代码.我在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)

android android-layout

5
推荐指数
1
解决办法
1960
查看次数

标签 统计

android ×1

android-layout ×1