Android Google glass-GDK-无法从XML文件膨胀视图
我正在运行glass XE 19.1,我正在尝试使用layout inflator。XML文件确实存在于layouts文件夹下,但该文件从未被识别 卡_倒计时无法解决是我得到的错误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) {
我不知道你的方法在哪里被调用,但如果你使用的是一张实时卡,你应该在菜单中添加“停止”项
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);
}