Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Google glass-GDK-无法从XML文件膨胀视图_Android_Google Glass_Google Gdk - Fatal编程技术网

Android Google glass-GDK-无法从XML文件膨胀视图

Android Google glass-GDK-无法从XML文件膨胀视图,android,google-glass,google-gdk,Android,Google Glass,Google Gdk,我正在运行glass XE 19.1,我正在尝试使用layout inflator。XML文件确实存在于layouts文件夹下,但该文件从未被识别 卡_倒计时无法解决是我得到的错误 我不知道你的方法在哪里被调用,但如果你使用的是一张实时卡,你应该在菜单中添加“停止”项 public CountDownView(final Context context, final AttributeSet attrs, final int style) {

我正在运行glass XE 19.1,我正在尝试使用layout inflator。XML文件确实存在于layouts文件夹下,但该文件从未被识别

卡_倒计时无法解决是我得到的错误


我不知道你的方法在哪里被调用,但如果你使用的是一张实时卡,你应该在菜单中添加“停止”项

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);
        }