我已经开发Android应用程序,以及一个问题。
I've develop android application, and one question.
如你所知,当我们使用LiveActivity,我们必须指定@ ID / Android的:清单ListView控件ID
As you know, When we use LiveActivity, we must specify @id/android:list for ListView ID.
不过,当我使用@ + ID / Android的:清单代替@ ID / Android的:列表中,这是工作的罚款
But, When I use @+id/android:list instead of @id/android:list, it is working fine.
什么之间@不同的是+ ID / Android的:清单和@ ID / Android的:清单??
What is different between @+id/android:list and @id/android:list ??
与的根本区别@
和 @ +
是 @ +
的信号,你需要添加一个新的ID,在 @
本身告诉编译器寻找一个现有ID。
The fundamental difference between @
and @+
is that @+
is signaling that you need to add a new id, the @
by itself tells the compiler to look for an existing id.