更新时间:2022-06-05 07:15:48
使用@+id
是正确的方法. @+id
创建一个新的ID,但前提是该名称不存在.
Using @+id
is the right way to do it. @+id
creates a new id but only if one with that name doesn't already exist.
如果您不想这样做,对于这种特殊的简单情况,将TextEdit
移动到Button
下方就足够了.
If you don't want to do that, for this particular simple case it would suffice to move the TextEdit
below the Button
.