Google glass- GDK-无法从XML文件中提取视图

时间:2014-08-23 06:40:00

标签: android google-glass google-gdk

我正在运行玻璃XE 19.1,我正在尝试使用布局缓冲器,XML文件确实存在于布局文件夹下,但文件永远不会被识别。

  

card_countdown无法解决是我得到的错误。

public CountDownView(final Context context, final AttributeSet attrs,
                final int style) {
            super(context, attrs, style);
            LayoutInflater.from(context).inflate(R.layout.card_countdown, this);

            this.mSecondsView = (TextView) this.findViewById(R.id.seconds_view);
        }

1 个答案:

答案 0 :(得分:-1)

我不确定您的方法在哪里被调用,但如果您使用的是直播卡,则应将项目停止添加到菜单中